OpenSource For You

Controller

-

Controller is the place where the applicatio­n logic resides. It is simply formed by JavaScript classes. In it, we can also call other components to work with. The controller is where the model lives.

The controller for a view is used to pull together the model used by the view and handle the input from the consumer of the view. In AngularJS, the controller is resolved by name, from the ng-controller directive.

Newspapers in English

Newspapers from India