设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

Angular.js v1.5.0 beta.2发布

2015-11-18 22:27| 发布者: joejoe0332| 查看: 1155| 评论: 0|原作者: oschina|来自: oschina

摘要: Angular.js v1.5.0 beta.2 发布,更新内容如下:Bug 修复$animate: ensure leave animation calls close callback (bfad2a4f,#12278, #12096, #13054)$cacheFactory: check key exists before decreasing cache size ...

Angular.js v1.5.0 beta.2 发布,更新内容如下:

Bug 修复

特性

性能提升

  • $compile:

    • use static jquery data method to avoid creating new instances (9b90c32f)

    • Lazily compile the transclude function (652b83eb)

  • $interpolate: provide a simplified result for constant expressions (cf83b4f4)

  • copy:

  • merge: remove unnecessary wrapping of jqLite element (4daafd3d,#13236)

Breaking Changes

  • $sanitize: due to 181fc567, The svg support in  is now an opt-in option

Applications that depend on this option can use  to turn the option back on, but while doing so, please read the warning provided in the  documentation for information on preventing click-hijacking attacks when this option is turned on.

ngMessage is now compiled with a priority of 1, which means directives on the same element as ngMessage with a priority lower than 1 will be applied when ngMessage calls the $transclude function. Previously, they were applied during the initial compile phase and were passed the comment element created by the transclusion of ngMessage. To restore this behavior, custom directives need to have their priority increased to at least "1".

ngOptions will now throw if ngModel is not present on the selectelement. Previously, having no ngModel let ngOptions silently fail, which could lead to hard to debug errors. The change should therefore not affect any applications, as it simply makes the requirement more strict and alerts the developer explicitly.

Previously, an non array-like input would pass through the orderBy filter unchanged. Now, an error is thrown. This can be worked around by converting an object to an array, either manually or using a filter such ashttps://github.com/petebacondarwin/angular-toArrayFilter. (null and undefined still pass through without an error, in order to support asynchronous loading of resources.)

Closes #11255 Closes #11719

详情请看:CHANGELOG.md

下载地址:v1.5.0-beta.2


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部