天天看點

Angular.js v1.6.0 釋出,Web 前端架構

web 前端架構 angular.js v1.6.0 釋出了。該版本合并了之前 1.6.0 候選版本中顯示的所有更改。

新特性

ngmodeloptions: 允許選項從祖先繼承 ngmodeloptions (296cfc, #10922)

$compile: 預設設定 preassignbindingsenabled 為 false (bcd0d4, #15352)

jqlite:

implement jqlite(f) as an alias to jqlite(document).ready(f) (369fb7)

don't throw for elements with missing getattribute (4e6c14)

don't remove a boolean attribute for .attr(attrname, '') (3faf45)

remove the attribute for .attr(attribute, null) (4e3624)

camelcase keys in jqlite#data (fc0c11, #15126)

align jqlite camelcasing logic with jquery (73050c, #7744)

$http:

删除棄用的回調方法: success()/error() (b54a39)

jsonp 回調必須由 jsonpcallbackparam 配置置頂 (fb6634, #15161, #11352)

jsonp 請求現在需要一個可信的資源 url (6476af, #11352)

select: 通過使用 ngvalue 支援任何類型的值添加(f02b70, #9842)

input:

$interpolate: use custom tostring() function if present (a5fd2e, #7317, #11406)

ngroute:

allow ngview to be included in an asynchronously loaded template (c13c66, #1213)

implement resolveredirectto (e98656, #5150)

$q: report promises with non rejection callback (c9dffd, #13653, #7992)

$location: default hashprefix to '!' (aa077e, #13812)

繼續閱讀