Controllers and modules in AngularJS

Veröffentlicht am: 19 Oktober 2017
auf dem Kanal: Programming Tutorials
137
2

Controller is a simple JavaScript function that is used to control the data of AngularJS application and increase the AngularJS scope. A controller is attached to the DOM object using ng-controller directive. When the controller is attached to the DOM, Angular instantiates the controller function and makes available an injectable parameter to the function called $scope.

Controller is used to

setup the initial state of the $scope object of that controller, in terms of setting up properties, objects, variables value etc.
attach behavior, specify function etc.
Controller is not used to
Format data
Filter data
Sharing between controllers
Manipulating DOM


Auf dieser Seite können Sie das Online-Video Controllers and modules in AngularJS mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Programming Tutorials 19 Oktober 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 137 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!