Learning AngularJS Controllers Tutorial - Part 1 | Introduction | AngularJS Session 4

Published: 06 July 2016
on channel: Techiofish
380
8

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 !!


On this page of the site you can watch the video online Learning AngularJS Controllers Tutorial - Part 1 | Introduction | AngularJS Session 4 with a duration of hours minute second in good quality, which was uploaded by the user Techiofish 06 July 2016, share the link with friends and acquaintances, this video has already been watched 380 times on youtube and it was liked by 8 viewers. Enjoy your viewing!