AngularJS v1.3
AngularJS Crash Course by RunAstartup.com
Summary
- One-time Bindings
- NPM
- ngModelOptions
- ngMessages
- ngARIA
- No more IE8 Support
One-time bindings
aka one-time expression
<li ng-repeat="item in ::items">
One-time: {{ ::item.number + 1 }}
</li>
// manually done with
$scope.$destroy();
ngModelOptionsÂ
allows tuning of model updates
ng-model-options="{
updateOn: 'default blur',
debounce: {
'default': 500, 'blur': 0
}
}"
ngMessages
the $error object and $pristine, $dirty, $valid, $invalid
ngARIA
Accessibility of web content
- aria-checked
- aria-valuemin
- aria-valuemax
- aria-valuenow
- aria-invalid
- aria-required
No IE8 Support
Object.create() and Object.getPrototypeOf()
ng-style instead of style="{{ someCss }}"
<!doctype html>
<html xmlns:ng="http://angularjs.org" id="ng-app" ng-app="optionalModuleName">
<head>
<!--[if lte IE 8]>
<script>
document.createElement('ng-include');
document.createElement('ng-pluralize');
document.createElement('ng-view');
// Optionally these for CSS
document.createElement('ng:include');
document.createElement('ng:pluralize');
document.createElement('ng:view');
</script>
<![endif]-->
</head>
<body>
...
</body>
</html>
AngularJS v1.3 Changes
By Tom
AngularJS v1.3 Changes
- 599