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
NgFor,现在的 NgForOf
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
来自:开源中国社区

