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



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

Answer / chaitanya

. 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.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is spa in angularjs?

0 Answers  


Explain ng-bind and ng-bind-html directives.

0 Answers  


How can we fix it?

0 Answers  


How to get image width height in angular js, before uploading a file?

0 Answers  


What are filters in angularjs? Can you list some?

0 Answers  






What is unit testing in angular 2 and also explain its benefits?

0 Answers  


How to do login and logout using ionic 3 and angular 4?

0 Answers  


Explain two-way binding in angularjs?

0 Answers  


Is angular a programming language?

0 Answers  


What is @ngmodule in angular 2?

0 Answers  


What is router-link directive in angular?

0 Answers  


When should you use an attribute versus an element?

0 Answers  


Categories