5月23日 西安 OSC 源创会开始报名啦,存储、虚拟机、Docker 等干货分享
AngularJS 1.4.0.rc0 发布,代号为 smooth-unwinding。
此版本现已提供下载:
https://github.com/angular/angular.js/archive/v1.4.0-rc.0.zip?
更新内容如下:
Bug 修复
- $compile:
- throw error on invalid directive name
(170ff9a3,#11281, #11109)
- update data() when controller returns custom value
(9900610e,#11147, #11326)
- $http: throw error if success and error methods do not receive a function
(1af563d4,#11330, #11333)
- $parse: fix parse errors on older Android WebViews which choke with reserved keywords
(10ae33b2,#11455)
- $rootScope: allow destroying a root scope
(f8c8cf69,#11241, #10895)
- cookieReader: safely access $document so it can be mocked
(a057e089,#11373, #11388)
- filterFilter: fix matching against null/undefined(b5002ab6,#11432, #11445)
- ngAnimate: ensure that minified repaint code isn't removed
(c55a4944,#9936)
- ngAria: handle elements with role="checkbox/menuitemcheckbox"
(44337f63,#11317, #11321)
- ngModel: allow setting model to NaN when asyncValidator is present
(948120ec,#11315, #11411)
- ngTouch: register touches properly when jQuery is used
(06a9f0a9,#4001, #8584, #10797, #11488)
- select: don't call $render twice if $viewValue ref changes
(7e5c447f,#11329, #11412)
新特性
- $anchorScroll: allow scrolling to a specified element
(731c8b5e,#4568, #9596)
- $animate: complete refactor of internal animation code
(c8700f04)
- $http: support custom params serializers
(6c8464ad,#3740, #7429, #9224, #11461)
- $interpolate: extend interpolation with MessageFormat like syntax
(1e58488a,#11152)
- angular.Module: add decorator method
(e57138d7,#11305, #11300)
- ngClass: add support for conditional map within an array.
(4588e627,#4807)
- travis: run unit tests on iOS 8
(2cdb2016,#11479)
性能提升
- $rootScope: remove history event handler when app is torn down
(d996305b,#9897, #9905)
- benchmark: add ngmodel benchmarks to largetable-bp
(b8dbdb0c,#11082)
- ngOptions: only perform deep equality check on ngModel if using track by
(171b9f7f,#11448, #11447)
重大改进
- $animate: due to c8700f04,
JavaSript and CSS animations can no longer be run in
parallel. With earlier versions of ngAnimate, both CSS and JS animations
would be run together when multiple animations were detected. This
feature has now been removed, however, the same effect, with even more
possibilities, can be achieved by injecting $animateCss into a
JavaScript-defined animation and creating custom CSS-based animations
from there. Read the ngAnimate docs for more info.
- $animate: due to c8700f04,
The function params for $animate.enabled() when an
element is used are now flipped. This fix allows the function to act as
a getter when a single element param is provided.
//? |