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

Pubblicato il: 06 July 2016
sul canale di: 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 !!


In questa pagina del sito puoi guardare il video online Learning AngularJS Controllers Tutorial - Part 1 | Introduction | AngularJS Session 4 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Techiofish 06 July 2016, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 380 volte e gli è piaciuto 8 spettatori. Buona visione!