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

How to declare a global variable in angular 2?

0 Answers  


Why use node.js?

0 Answers  


How did you reverse a string?

0 Answers  


How do you interact between two components?

0 Answers  


Which one is fast between $digest and $apply?

1 Answers   SLK Software,






Difference betweek javascript, jquery and angularjs?

0 Answers  


What is dependency injection (di) in angular?

0 Answers  


Why webpack is used in angular?

0 Answers  


What is dirty checking in angular?

0 Answers  


What is property binding in angular?

0 Answers  


Do you know scope in angularjs?

0 Answers  


What is angular 7? How is it different from angularjs?

0 Answers  


Categories