发布于 2017-02-04 00:21:37 | 106 次阅读 | 评论: 0 | 来源: 网友投递
这里有新鲜出炉的AngularJS Tutorial中文版,程序狗速度看过来!
AngularJS 前端JS框架
AngularJS诞生于Google是一款优秀的前端JS框架,已经被用于Google的多款产品当中。AngularJS有着诸多特性,最为核心的是:MVC、模块化、自动化双向数据绑定、语义化标签、依赖注入,等等。
Angular 2.4.6 和 4.0.0 beta6 发布了,Angular 2.4.6 更新内容:
Bug 修复
common: add PopStateEvent interface
common: DatePipe does't throw for NaN
common: DatePipe parses input string if it's not a valid date in browser
common: introduce isObservable method
compiler: allow empty translations for attributes
core: add bootstrapped modules into platform modules list
core: ViewContainerRef.indexOf should not throw error when empty
forms: show a blank line when nothing is selected in IE or Edge
forms: verify functions passed into async validators returns Observable or Promise
ngModel should use rxjs/symbol/observable to detect observable
http: remove dots from jsonp callback name
i18n: parse ICU messages while normalizing templates
language-service: do not crash when Angular cannot be located
platform-browser: remove style nodes on destroy
router: fix CanActivate redirect to the root on initial load
router: should find guard provided in a lazy loaded module
router: should allow navigation from root component in ngOnInit hook
testing: async/fakeAsync/inject/withModule helpers should pass through context to callback functions
upgrade: detect async downgrade component changes
Angular 4.0.0 beta6 更新内容:
重大改进:
common:现在需要定义 Iterable<T>
来正确编译 Angular 应用。 在运行时不需要支持 Iterable<T>
,但是类型定义 Iterable<T>
必须可用。
NgFor
,现在的 NgForOf<T>
在运行时已经支持 Iterable<T>
。通过此更改,类型定义会更新以反映此支持。
Migration:将 “es2015.iterable.ts” 添加到 tsconfig.json“libs” 字段。
Part of #12398:之前 upgrade/static/downgradeInjectable
返回以下形式的数组:
['dep1', 'dep2', ..., function factory(dep1, dep2, ...) { ... }]
现在它返回一个带有 $inject
属性的函数:
factory.$inject = ['dep1', 'dep2', ...]; function factory(dep1, dep2, ...) { ... }
完整更新内容请查看发行日志
下载地址:
Angular 2.4.6
Angular 4.0.0 beta6