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 dependency injection in angularjs and how does it work?

443


What is the advantage of angular?

448


What sre the directives in angularjs?

460


How to configure angular routes?

473


What are browser events?

438






What is singleton in angularjs?

445


What is dependency injection (di)?

447


Explain how routing works in angularjs?

481


Distinguish between factory, service & provider?

422


What is patchvalue used for?

436


What is angular mainly used for?

429


What is the use of canactivate in angular?

438


What are the security threats should we be aware of in angular 2 application?

466


How to delete a row in angular js?

441


How to set headers for every request in angular?

431