Developer(s) | |
---|---|
Initial release | October 20, 2010; 8 years ago[1] |
Stable release | |
Repository | AngularJS Repository |
Written in | JavaScript |
Platform | JavaScript engine |
Size | 167 kB production 1.2 MB development |
Type | Web framework |
License | MIT License |
Website | angularjs.org |
ng-animate
ng-*
attributes are not valid in HTML specifications, data-ng-*
can also be used as a prefix. For example, both ng-app
and data-ng-app
are valid in AngularJS.ng-app
ng-aria
ng-bind
<span ng-bind='name'></span>
displays the value of ‘name’ inside the span element. Any change to the variable ‘name’ in the application's scope reflect instantly in the DOM.ng-class
ng-controller
ng-if
ng-init
ng-model
ng-bind
, but establishes a two-way data binding between the view and the scope.ng-model-options
ng-repeat
ng-show
& ng-hide
ng-switch
ng-view
$scope
service in Angular detects changes to the model section and modifies HTML expressions in the view via a controller. Likewise, any alterations to the view are reflected in the model. This circumvents the need to actively manipulate the DOM and encourages bootstrapping and rapid prototyping of web applications.[11]AngularJS detects changes in models by comparing the current values with values stored earlier in a process of dirty-checking, unlike Ember.js and Backbone.js that trigger listeners when the model values are changed.[12]$watch
$scope.$watch('person.username', validateUnique);
<input ng-model='person.username' />
$digest
$apply
$destroy
$scopes
. If $scope.myVar
is defined in a controller and this variable was marked for watching, Angular will monitor the changes on myVar in each loop iteration.$scope
every cycle. Miško Hevery suggests keeping fewer than 2000 watchers on any page.[12]AngularJS 1.3 has dropped support for IE8. Read more about it on our blog. AngularJS 1.2 will continue to support IE8, but the core team does not plan to spend time addressing issues specific to IE8 or earlier.
Wikimedia Commons has media related to AngularJS. |