AngularJS framework is maintained by Google.
Developed in 2009 by Misko Hevery and Adam Abrons.
Version 1.0 of AngularJS was released in December 2012.
Backed by Google
Two-way data binding
Plays nicely with other JS libraries
Very active development and Community
Few Important Directives
Ng-App : The ng-App directive is typically placed near the root element of the page - e.g. on the or tags.
Ng-Model: It is responsible for binding the view into the model
ng-controller : It is a function that Angular invokes. Controller takes a $scope parameter, Attach model to $scope
- Add a <script> tag pointing to angular.js
- Add an ng-app attribute in your HTML
- ng-app is an Angular Directive
Ng-Model is responsible for:
Binding the view into the model, which other directives such as input, textarea or select require.
Providing validation behavior (i.e. required, number, email, url).
Controllers and Modules
Controller is a function that Angular invokes. Controller takes a $scope parameter.
Modules: Controllers usually live in modules. So Avoids the global namespace
AngularJS Vs Knockout
Data binding(Dirty Checking)
Model-View-View Model (MVVM) Library