Controllers and modules in AngularJS

Publicado el: 19 octubre 2017
en el canal de: 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


En esta página del sitio puede ver el video en línea Controllers and modules in AngularJS de Duración hora minuto segunda en buena calidad , que subió el usuario Programming Tutorials 19 octubre 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 137 veces y le gustó 2 a los espectadores. Disfruta viendo!