发布于 2016-01-22 00:59:03 | 187 次阅读 | 评论: 0 | 来源: 网友投递
这里有新鲜出炉的AngularJS开发指南,程序狗速度看过来!
AngularJS 前端JS框架
AngularJS诞生于Google是一款优秀的前端JS框架,已经被用于Google的多款产品当中。AngularJS有着诸多特性,最为核心的是:MVC、模块化、自动化双向数据绑定、语义化标签、依赖注入,等等。
AngularJS 1.4.9 发布,更新如下:
Animation
ensure that animate promises resolve when the document is hidden (9a60408c)
do not trigger animations if the document is hidden (09f6061a,#12842, #13776)
only copy over the animation options once (2fc954d3,#13722, #13578)
allow event listeners on document in IE (5ba4419e,#13548, #13696)
allow removing classes that are added by a running animation (6c4581fc,#13339, #13380, #13414, #13472, #13678)
do not use event.timeStamp
anymore for time tracking (620a20d1,#13494, #13495)
ignore children without animation data when closing them (be01cebf,#11992, #13424)
do not alter the provided options data (7a81e6fe,#13040, #13175)
correctly handle $animate.pin()
host elements (a985adfd,#13783)
allow animations when pinned element is parent element (4cb8ac61,#13466)
allow enabled children to animate on disabled parents (6d85f24e,#13179, #13695)
correctly access minErr
(0c1b54f0)
ensure animate runner is the same with and without animations (937942f5,#13205, #13347)
remove animation end event listeners on close (d9157849,#13672)
consider options.delay value for closing timeout (592bf516,#13355, #13363)
$controller: allow identifiers containing $
(2563ff7b,#13736)
$http: throw if url passed is not a string (c5bf9dae,#12925, #13444)
$parse: handle interceptors with undefined
expressions (7bb2414b)
$resource: don't allow using promises as timeout
and log a warning (47486524)
formatNumber: cope with large and small number corner cases (9c49eb13,#13394, #8674, #12709, #8705, #12707, #10246, #10252)
input:
isArrayLike: recognize empty instances of an Array subclass (323f9ab7,#13560, #13708)
ngInclude: do not compile template if original scope is destroyed (9590bcf0)
ngOptions:
select: re-define ngModelCtrl.$render
in the select
directive's postLink function (529b2507,#13583, #13583, #13663)
ngLocale: add support for standalone months (54c4041e,#3744, #10247, #12642, #12844)
ngMock: add support for $animate.closeAndFlush()
(512c0811)
ngAnimate: speed up areAnimationsAllowed
check (2d3303dd)
While we do not deem the following to be a real breaking change we are highlighting it here in the changelog to ensure that it does not surprise anyone.
$resource: due to 47486524,
Possible breaking change for users who updated their code to provide a timeout
promise for a $resource
request in version 1.4.8.
Up to v1.4.7 (included), using a promise as a timeout in $resource
, would silently fail (i.e. have no effect).
In v1.4.8, using a promise as timeout would have the (buggy) behaviour described in https://github.com/angular/angular.js/pull/12657#issuecomment-152108887(i.e. it will work as expected for the first time you resolve the promise and will cancel all subsequent requests after that - one has to re-create the resource class. This is feature was not documented.)
With this change, using a promise as timeout in 1.4.9 onwsards is not allowed. It will log a warning and ignore the timeout value.
If you need support for cancellable $resource
actions, you should upgrade to version 1.5 or higher.
更多内容请看:CHANGELOG.md
下载地址:1.4.9