Angular.js 1.7.3 发布,Web 前端框架

Angular.js 1.7.3 已发布。主要更新内容如下:

Bug 修复

  • $location:

    • fix infinite recursion/digest on URLs with special characters (e68697, #16592, #16611)

    • avoid unnecessary $locationChange* events due to empty hash (1144b1, #16632, #16636)

  • ngMock.$httpBackend:

    • pass failed HTTP expectations to $exceptionHandler (4adbf8, #16644)

    • correctly ignore query params in {expect,when}Route (be417f, #14173, #16589)

  • Angular: add workaround for Safari / Webdriver problem (0a1db2, #16645)

  • $animate: avoid memory leak with $animate.enabled(element, enabled) (4bd424, #16649)

  • $compile:

    • use correct parent element when requiring on html element (05ac70, #16535, #16647)

    • work around Firefox DocumentFragment bug (10973c, #16607, #16615)

  • ngEventDirs:

    • pass error in handler to $exceptionHandler when event was triggered in a digest (688211)

    • don't wrap the event handler in $apply if already in $digest (535ee3, #14673, #14674)

  • 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 and timeSecondsFormat (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


Angular.js 1.7.3 发布,Web 前端框架