Angular.js v1.5.6 发布了。
Bug 修复:
-
$browser: set the url even if the browser transforms it (743b33ab,#14427, #14499)
-
$compile:
-
properly bind context to linking functions for directives with
templateUrl
(5ae72dc7) -
always use the DDO as
this
in pre-/post-linking functions (47bc98a1,#9306) -
don't run unnecessary update to one-way bindings (30479647,#14546, #14580)
-
removing unnecessary white space in element-transclusion comments (1116a96d,#14549, #14550)
-
properly handle setting
srcset
to undefined (308f22ba,#14470, #14493)
-
-
$injector:
-
$templateRequest: trust empty templates in
$templateCache
as well (10955969,#14479, #14496) -
filters: always call
splice()
with 2 arguments or more (6f1fae8a,#14467, #14489) -
ng-bind-html: watch the unwrapped value using
$sce.valueOf()
(instead oftoString()
) (1c1c9b27,#14526, #14527) -
ngAnimate:
-
ngMessages: do not compile ngMessagesInclude template if scope is destroyed (69d9072d,#12695, #14640)
-
ngMock:
新增特性:
-
$compile: support omitting required controller name if same as the local name (8965d57a,#14513)
-
$parse: Add support for ES6 object initializers (1c9b9e24)
平台支持:
-
ngAnimate: listen for document visibility changes (b377d6b0,#14568)
-
ngClass: improve even-odd checking (cf1b1755)
下载地址:
https://github.com/angular/angular.js/releases/tag/v1.5.6