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 !!
Auf dieser Seite können Sie das Online-Video Learning AngularJS Controllers Tutorial - Part 1 | Introduction | AngularJS Session 4 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Techiofish 06 July 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 380 Mal angesehen und es wurde von 8 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!