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

新闻 AngularJS 1.4.0.rc0 发布 下载

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

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    486,020
    赞:
    46
    AngularJS 1.4.0.rc0 发布,代号为 smooth-unwinding。

    此版本现已提供下载:

    https://github.com/angular/angular.js/archive/v1.4.0-rc.0.zip

    更新内容如下:

    Bug 修复

    新特性

    性能提升

    重大改进


    • $animate: due to c8700f04, JavaSript and CSS animations can no longer be run in parallel. With earlier versions of ngAnimate, both CSS and JS animations would be run together when multiple animations were detected. This feature has now been removed, however, the same effect, with even more possibilities, can be achieved by injecting $animateCss into a JavaScript-defined animation and creating custom CSS-based animations from there. Read the ngAnimate docs for more info.


    • $animate: due to c8700f04, The function params for $animate.enabled() when an element is used are now flipped. This fix allows the function to act as a getter when a single element param is provided.

    // < 1.4$animate.enabled(false, element);// 1.4+$animate.enabled(element, false);

    • $animate: due to c8700f04, In addition to disabling the children of the element,$animate.enabled(element, false) will now also disable animations on the element itself.


    • $animate: due to c8700f04, Animation-related callbacks are now fired on$animate.on instead of directly being on the element.

    // < 1.4element.on('$animate:before', function(e, data) { if (data.event === 'enter') { ... }
    });
    element.off('$animate:before', fn);// 1.4+$animate.on(element, 'enter', function(data) { //...});
    $animate.off(element, 'enter', fn);

    • $animate: due to c8700f04, There is no need to call $scope.$apply or$scope.$digest inside of a animation promise callback anymore since the promise is resolved within a digest automatically (but a digest is not run unless the promise is chained).

    // < 1.4$animate.enter(element).then(function() {
    $scope.$apply(function() {
    $scope.explode = true;
    });
    });// 1.4+$animate.enter(element).then(function() {
    $scope.explode = true;
    });

    • $animate: due to c8700f04, When an enter, leave or move animation is triggered then it will always end any pending or active parent class based animations (animations triggered via ngClass) in order to ensure that any CSS styles are resolved in time.

    更多内容请看更新日志

    Angular JS (Angular.JS) 是一组用来开发Web页面的框架、模板以及数据绑定和丰富UI组件。它支持整个开发进程,提供web应用的架构,无需进行手工DOM操作。 AngularJS很小,只有60K,兼容主流浏览器,与 jQuery 配合良好。

    [​IMG]
    AngularJS 1.4.0.rc0 发布下载地址
     
正在加载...