March 2018
Beginner to intermediate
514 pages
13h 11m
English
Controllers are defined by JavaScript code and are used to augment the AngularJS scope. It's effectively a way to control the data that is flown between the view (HTML) and the code within the web application. Controllers are used to generally achieve two things:
It should not be used for any presentation logic and mainly contains the business logic of an app. It should also not be used to filter an output, format the input, or to share code between different controllers. The controller can be loaded within a segment of the UI by using the attribute ng-controller as in the following example:
<html><script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"> ...
Read now
Unlock full access