Thursday, September 7, 2017

What is the role of ng-app, ng-init and ng-model directives?

The main role of these directives is explained as:

ng-app - Initialize the angular app.

ng-init - Initialize the angular app data.

ng-model - Bind the html elements like input, select, text area to angular app model.

No comments:

Post a Comment

What is restrict option in directive?

The restrict option in angular directive, is used to specify how a directive will be invoked in your angular app i.e. as an attribute, class...