What is ng init?



What is ng init?..

Answer / Bhoopendar Singh

ngInit is a directive in AngularJS that is used to initialize data properties when the controller is instantiated. However, it's considered an anti-pattern and should be avoided in modern Angular applications.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is router and switch?

1 Answers  


What is latest version of angularjs?

1 Answers  


Explain routeprovider in angularjs?

1 Answers  


What is primeng?

1 Answers  


Difference between ng-bind and ng-model directive.

1 Answers  


What is a class in angular?

1 Answers  


Give an example of Data binding in AngularJS?

1 Answers  


How many types of data bindings are there in angularjs?

1 Answers  


What are the key components of angular 2?

1 Answers  


What angular is doing with bazel compiler?

1 Answers  


How to initialize a select box with options on page load in angular js?

1 Answers  


How can you handle errors in angular 2 applications?

1 Answers  


Categories