1 / 7

What are the controllers in AngularJS?

In this PPT you are going to know What are the controllers in AngularJS.<br><br>https://nareshit.com/angularjs-online-training/

Download Presentation

What are the controllers in AngularJS?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What are the controllers in Angular JS?

  2. MVC To understand the concept of controller, I would suggest you start reading MVC. MVC is nothing but Model View Controller. Now every Angular Application is based on MVC structure.

  3. Model : The application which has the business logic and data model, usually the application which is connected with database.

  4. View: The HTML code that will be visible to the user afterwards.

  5. Controller: The code which will call different functions to get the right data from model to the view .

  6. Angular Specifically for an Angular app, every ng-app is assigned a controller. Whenever the said ng-app is started, its controller comes in action. The functionality of the page will then come from this controller. Controllers in Angular is to expose/bind data to our view via $scope, and to add functions to $scope that contain business logic to enhance view behavior. Presentation logic should remain within views and directives. Controllers will refresh data every time it gets refreshed on loading, unlike services it retains the data on consequent Refreshes.

  7. Meet the Experts : https://nareshit.com/angularjs-online-training/

More Related