发布于 2015-03-18 00:19:50 | 166 次阅读 | 评论: 0 | 来源: 网友投递
这里有新鲜出炉的AngularJS Tutorial中文版,程序狗速度看过来!
AngularJS 前端JS框架
AngularJS诞生于Google是一款优秀的前端JS框架,已经被用于Google的多款产品当中。AngularJS有着诸多特性,最为核心的是:MVC、模块化、自动化双向数据绑定、语义化标签、依赖注入,等等。
AngularJS 1.3.15/1.4.0 Beta6 发布,更新内容如下:
1.4.0-beta.6 cookie-liberation (2015-03-17)
$animate: call applyStyles
from options on leave
(4374f892,#10068)
$browser: don't crash if history.state
access causes error in IE (3b8163b7,#10367, #10369)
$sanitize: disallow unsafe svg animation tags (67688d5c,#11290)
Angular: properly compare RegExp with other objects for equality (f22e1fc9,#11204, #11205)
date filter: display localised era for G
format codes (2b4dfa9e,#10503, #11266)
filterFilter:
form: allow dynamic form names which initially evaluate to blank (410f7c68)
jqLite: attr should ignore comment, text and attribute nodes (bb5bf7f8)
ng/$locale: add ERA info in generic locale (4acb0af2)
ngMessages: ensure that multi-level transclusion works with ngMessagesInclude
(d7ec5f39,#11196)
ngOptions: fix model<->option interaction when using track by
(6a03ca27,#10869, #10893)
rootScope: prevent memory leak when destroying scopes (fb7db4a0,#11173, #11169)
$cookies:
$cookiesProvider: provide path, domain, expires and secure options (53c66369)
$interval: pass additional arguments to the callback (4f1f9cfd,#10632)
$timeout: pass additional arguments to the callback (3a4b6b83,#10631)
angular.merge: provide an alternative to angular.extend
that merges 'deeply' (c0498d45,#10507, #10519)
filterFilter: compare object with custom toString()
to primitive (f8c42161,#10464, #10548)
ngAria:
ngLocale: Add FIRSTDAYOFWEEK and WEEKENDRANGE from google data (3d149c7f)
ngMock:
ngModel: support conversion to timezone other than UTC (0413bee8,#11005)
$cookies: due to 38fbe3ee,
$cookies
不再揭露属性,不会显示当前浏览器的 cookie 值。
1.3.15 locality-filtration (2015-03-17)
$animate: call applyStyles
with options on leave
(ebd84e80,#10068)
$browser: don't crash if history.state access causes error in IE (92767c09,#10367, #10369)
Angular: properly compare RegExp with other objects for equality (b8e8f9af,#11204, #11205)
date filter: display localised era for G
format codes (f2683f95,#10503, #11266)
filterFilter:
form: allow dynamic form names which initially evaluate to blank (190ea883,#11096)
ng/$locale: add ERA info in generic locale (57842530)
rootScope: prevent memory leak when destroying scopes (528cf09e,#11173, #11169)
templateRequest: avoid throwing syntax error in Android 2.3 (75abbd52,#11089, #11051, #11088)
ngAria:
ngMock:
现已提供下载:
Angular JS (Angular.JS) 是一组用来开发Web页面的框架、模板以及数据绑定和丰富UI组件。它支持整个开发进程,提供web应用的架构,无需进行手工DOM操作。 AngularJS很小,只有60K,兼容主流浏览器,与 jQuery 配合良好。
AngularJS诞生于Google是一款优秀的前端JS框架,已经被用于Google的多款产品当中。AngularJS有着诸多特性,最为核心的是:MVC、模块化、自动化双向数据绑定、语义化标签、依赖注入,等等。
数据绑定可能是AngularJS最酷最实用的特性。它能够帮助你避免书写大量的初始代码从而节约开发时间。一个典型的web应用可能包含了80%的代码用来处理,查询和监听DOM。数据绑定使得代码更少,你可以专注于你的应用。
传统来说,当model变化了。 开发人员需要手动处理DOM元素并且将属性反映到这些变化中。这个一个双向的过程。一方面,model变化驱动了DOM中元素变化,另一方面,DOM元素 的变化也会影响到Model。这个在用户互动中更加复杂,因为开发人员需要处理和解析这些互动,然后融合到一个model中,并且更新View。这是一个 手动的复杂过程,当一个应用非常庞大的时候,将会是一件非常费劲的事情。