1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Angular.js v1.5.0 beta.2 发布 下载

本帖由 漂亮的石头2015-11-18 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,334
    赞:
    47
    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
    Angular.js v1.5.0 beta.2 发布下载地址
     
正在加载...