What is ng-app, ng-init, and ng-model?
Answer / Vimal Kumar Chandra
ng-app is a directive that tells AngularJS where to start looking for the application. It should be added to the HTML body or any parent element within the application. ng-init is a non-standard AngularJS directive used for initializing controller properties with some data. It's discouraged because it can lead to hard-to-debug issues, and AngularJS provides better ways for data initialization, such as using controllers. ng-model, on the other hand, is used for creating a link between the view (the HTML input) and the model (a JavaScript property).
| Is This Answer Correct ? | 0 Yes | 0 No |
Describe mvc in reference to angular.
How does angular use singleton pattern?
What is lazy loading and how to enable lazy loading in angular 2?
What are promises in angular 2?
What is singleton pattern? How does angular use it?
How do you use singleton pattern?
Does webpack remove unused imports?
Why should I learn angular?
What are the advantages of using angular 2?
What is the difference between Rootscope and Scope in AngularJS?
Difference between service, directive, and module?
Can we use the open-source closure library with angular?