Web 前端框架 Angular.js v1.6.0 发布了。该版本合并了之前 1.6.0 候选版本中显示的所有更改。
新特性
$compile: 默认设置
preAssignBindingsEnabled
为 false (bcd0d4, #15352)jqLite:
implement
jqLite(f)
as an alias tojqLite(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)return
[]
for.val()
on<select multiple>
with no selection (d882fd)$http:
input:
add support for binding to
input[type=range]
(913016, #5892, #14870)add support for
step
toinput[type=number]
(e1da4be, #10597)allow
ngTrim
to work forinput[type=radio]
(47724b)$interpolate: use custom
toString()
function if present (a5fd2e, #7317, #11406)ngRoute:
$q: report promises with non rejection callback (c9dffd, #13653, #7992)
下载地址