Controllers and modules in AngularJS

Publié le: 19 octobre 2017
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne Controllers and modules in AngularJS durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Programming Tutorials 19 octobre 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 137 fois et il a aimé 2 téléspectateurs. Bon visionnage!