What is Controller in AngularJS?



What is Controller in AngularJS?..

Answer / chaitanya

The controller defines the actual behavior of your app. It contains business logic for the view and connects the model to view with the help of $scope. A controller is associated with a HTML element with the ng-controller directive.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is ivy renderer? Is it supported by angular 7?

0 Answers  


Explain the difference between constructor and ngoninit in angular 6?

0 Answers  


What are browser events?

0 Answers  


Explain the concept of lazy loading in angular 2

0 Answers  


What is art compilation?

0 Answers  


What is AngularUI router and how it is different from ngRoute?

0 Answers  


What is difference between javascript and angular?

0 Answers  


How can we show that a scope variable should have one-time binding only?

0 Answers  


What is @injectable()?

0 Answers  


Difference between angular 2, 4, 5, 6, &7?

0 Answers  


Can we have any service for ngfor and ngif in angular?

0 Answers  


List at down the ways in which you can communicate between applications modules using core angular functionality.

0 Answers  


Categories