发布于 2015-04-10 23:50:35 | 238 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的AngularJS教程,程序狗速度看过来!

AngularJS 前端JS框架

AngularJS诞生于Google是一款优秀的前端JS框架,已经被用于Google的多款产品当中。AngularJS有着诸多特性,最为核心的是:MVC、模块化、自动化双向数据绑定、语义化标签、依赖注入,等等。


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 配合良好。

AngularJS诞生于Google是一款优秀的前端JS框架,已经被用于Google的多款产品当中。AngularJS有着诸多特性,最为核心的是:MVC、模块化、自动化双向数据绑定、语义化标签、依赖注入,等等。



历史版本 :
Angular 6.0.0-beta.1 和 5.2.2 发布,Web 前端框架
Angular 6.0.0-beta.0 和 5.2.1 发布,Web 前端框架
Angular 5.2 现已发布,Web 前端框架
Angular 5.2.0-rc.0 和 5.1.3 发布,Web 前端框架
Angular 5.2.0-beta.1 和 5.1.2 发布,Web 前端框架
Angular 5.2.0-beta.0 和 5.1.1 发布,Web 前端框架
Angular 5.1.0 正式版发布,Web 前端框架
Angular 5.0.5 和 5.1.0 rc.1 发布,Web 前端框架
Angular 5.0.4 和 5.1.0 rc.0 发布,Web 前端框架
Angular.js 1.6.7 发布,Web 前端框架
Angular 5.0.2 和 5.1.0 beta1 发布,Web 前端框架
Angular 5.0.1 和 5.1.0 beta0 发布,Web 前端框架
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务