红联Linux门户
Linux帮助

Angular 2.4.6和4.0.0 beta6发布,Web前端框架

发布时间:2017-02-04 09:20:03来源:红联作者:baihuo
Angular 2.4.6 和 4.0.0 beta6 发布了,Angular 是一款十分流行且好用的 Web 前端框架,目前由 Google 维护。

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 来正确编译 Angular 应用。 在运行时不需要支持 Iterable ,但是类型定义 Iterable 必须可用。

NgFor,现在的 NgForOf在运行时已经支持 Iterable 。通过此更改,类型定义会更新以反映此支持。

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, ...) { ... }

软件详情:https://github.com/angular/angular/blob/master/CHANGELOG.md

下载地址:https://github.com/angular/angular/archive/2.4.6.zip

来自:开源中国社区
文章评论

共有 0 条评论