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)

return [] for .val() on <select multiple> with no selection (d882fd)

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:

add support for binding to inputtype=range

add support for step to inputtype=number

allow ngTrim to work for inputtype=radio

$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)

文章转载自 开源中国社区[http://www.oschina.net]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值