Angular.js 1.7.3 已发布。主要更新内容如下:
Bug 修复
- $location:
- ngMock.$httpBackend:
- Angular: add workaround for Safari / Webdriver problem (0a1db2, #16645)
- $animate: avoid memory leak with
$animate.enabled(element, enabled)
(4bd424, #16649) - $compile:
- ngEventDirs:
- angular.element: do not break on
cleanData()
if_data()
returns undefined (7cf4a2, #16641, #16642) - ngAria: do not scroll when pressing spacebar on custom buttons (3a517c, #14665, #16604)
新特性
- $compile: add support for arbitrary DOM property and event bindings (a5914c, #16428, #16235, #16614)
- ngMock: add
$flushPendingTasks()
and$verifyNoPendingTasks()
(6f7674, #14336) - core: implement more granular pending task tracking (17b139)
- $animate: add option data to event callbacks (fc64e6, #12697, #13059)
- form.FormController: add $getControls() (c9d1e6, #16601, #14749, #14517, #13202)
- ngModelOptions: add
timeStripZeroSeconds
andtimeSecondsFormat
(b68221, #10721, #16510, #16584)
性能改进
- ngAnimate: avoid repeated calls to addClass/removeClass when animation has no duration (093635, #14165,#14166, #16613)
源码下载:
转自 https://www.oschina.net/news/98871/angularjs-1-7-3-released