发布于 2015-12-10 00:49:46 | 181 次阅读 | 评论: 0 | 来源: 网友投递

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

AngularJS 前端JS框架

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


AngularJS 1.5.0-rc.0 发布,更新如下:

特性

Bug 修复

重大更新

This is only a breaking change to a feature that was added in beta 2. If you have not started using multi-slot transclusion then this will not affect you.

The keys and values for the transclude map of the directive definition have been swapped around to be more consistent with the other maps, such as scope and bindToController.

Now the key is the slot name and the value is a normalized element selector.

Using a promise as timeout is no longer supported and will log a warning. It never worked the way it was supposed to anyway.

Before:

var deferred = $q.defer();var User = $resource('/api/user/:id', {id: '@id'}, {
  get: {method: 'GET', timeout: deferred.promise}
});var user = User.get({id: 1});   // sends a requestdeferred.resolve();             // aborts the request// Now, we need to re-define `User` passing a new promise as `timeout`// or else all subsequent requests from `someAction` will be abortedUser = $resource(...);
user = User.get({id: 2});

After:

var User = $resource('/api/user/:id', {id: '@id'}, {
  get: {method: 'GET', cancellable: true}
});var user = User.get({id: 1});   // sends a requestuser.$cancelRequest();      // aborts the requestuser = User.get({id: 2});

The $sanitize service will now remove instances of the <use> tag from the content passed to it.

This element is used to import external SVG resources, which is a security risk as the $sanitizeservice does not have access to the resource in order to sanitize it.

A new property to access route resolves is now available on the scope of the route. The default name for this property is $resolve. If your scope already contains a property with this name then it will be hidden or overwritten.

In this case, you should choose a custom name for this property, that does not collide with other properties on the scope, by specifying the resolveAs property on the route.

A new property to access all the locals for an expression is now available on the scope. This property is  $locals.

  • If scope.$locals already exists, the way to reference this property is now this.$locals.

  • If the locals themselves include a property $locals then the way to reference that is now $locals.$locals.

更多内容请看:CHANGELOG.md

下载页面:1.5.0-rc.0

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号  版权声明  广告服务