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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is modular view engine architecture?

468


Explain ng-repeat directive ?

409


What are the characteristics of 'scope'?

432


What is a controller?

468


When should we use angular?

402






What are custom directives in angular?

405


What is routerlink in angular?

349


What is a guard in angular?

410


What are the core dependencies of angular 7?

395


What is Data Binding? How Many Types Of Data Binding Directives Are Provided By AngularJS?

466


What are services in angularjs?

439


What are the differences in ngmodules and javascript modules?

443


What are the expressions in angularjs?

427


How to bind to user input events to component event handlers?

418


What is difference between javascript and typescript?

419