Huge performance improvements!
One time bindings
Hello {{::name}}
Hello {{name}}
- {{friend}}
ngModel options
Search: {{query}}
Name: {{name}}
ngModel $validators
.directive('available', function ($timeout) {
return {
require: 'ngModel',
link: function ($scope, element, attrs, ngModel) {
ngModel.$asyncValidators.available =
function (username) {
return $timeout(function () {
return true;
}, 1000, false);
};
}
};
});
ng-messages
…
…
…
ng-animate
element.on('click', function (e) {
$animate.animate(angular.element(indicator), {}, {
left: e.offsetX + 'px',
top: e.offsetY + 'px'
}, 'is-animating');
$scope.$digest();
});
$compileProvider.debugInfoEnabled(false);
Disables classes like "ng-binding, ng-scope" (used by protractor, batarang etc.)
Quick look at Angular 2