Explain ng-controller directive angularjs?



Explain ng-controller directive angularjs?..

Answer / Swati Sharma

ngController in AngularJS is a built-in directive used to attach a controller to a scope. It allows you to define the behavior and logic of an application, and it can be applied to any HTML element. The controller's properties and methods can then be accessed within the associated HTML template.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How would you update angular 6 to angular 7?

1 Answers  


What is callback function?

1 Answers  


What do you mean by templateref and viewcontainerref?

1 Answers  


Why should use angular js?

1 Answers  


What is $location in angularjs?

1 Answers  


What is the need for typescript in angular 2?

1 Answers  


Why there are two “destroy” events associated with the termination of scope in angularjs?

1 Answers  


Why services are used in angularjs?

1 Answers  


What is pre-linking function in angularjs?

1 Answers  


How to create a new project in angular js using cli?

1 Answers  


When do you use template-driven vs model-driven forms? Why?

1 Answers  


What is i18n and L10n?

1 Answers  


Categories