设为首页收藏本站

LUPA开源社区

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

AngularJS 1.4.0.rc0发布

2015-4-12 22:07| 发布者: joejoe0332| 查看: 1049| 评论: 0|原作者: oschina|来自: oschina

摘要: AngularJS 1.4.0.rc0 发布,代号为 smooth-unwinding。此版本现已提供下载:https://github.com/angular/angular.js/archive/v1.4.0-rc.0.zip更新内容如下:Bug 修复$compile:throw error on invalid directive name ...

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
// < 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.oninstead of directly being on the element.

1
2
3
4
// < 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.$digestinside 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
2
3
4
5
6
7
// < 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 配合良好。



酷毙

雷人

鲜花

鸡蛋

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

最新评论

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

返回顶部