In Angular, a Controller is defined by a JavaScript constructor function that is used to augment the Angular Scope.
When a Controller is attached to the DOM via the ng-controller directive, Angular will instantiate a new Controller object, using the specified Controller's constructor function. A new child scope will be created and made available as an injectable parameter to the Controller's constructor function as $scope.
If the controller has been attached using the controller as syntax then the controller instance will be assigned to a property on the new scope.
Use controllers to:
Set up the initial state of the $scope object.
Add behavior to the $scope object.
AngularJS is an open-source JavaScript framework developed by Google.
It helps you to create single-page applications or one-page web applications.
It’s not a JavaScript library (As they say). There are no functions which we can directly call and use.
It is not a DOM manipulation library like jQuery. But it uses subset of jQuery for DOM manipulation (called jqLite).
Focus more on HTML side of web apps.
It is based on MV-* pattern and allow you to build well structured, easily testable and maintainable front-end applications.
techiofish is a technology learning platform powered by Bag2Bag and Wedealnow.
For any queries and feedback you can contact us at [email protected].
Like us on facebook: / bag2bag.care
Tweet/follow us: / bag2bag_care
Linkedin: / bag2bag
Download App: https://goo.gl/rcqVlr
We would love to hear from you. Have a great day !!
Nesta página do site você pode assistir ao vídeo on-line Learning AngularJS Controllers Tutorial - Part 1 | Introduction | AngularJS Session 4 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Techiofish 06 July 2016, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 380 vezes e gostou 8 espectadores. Boa visualização!