为什么棋牌室开着开着就倒闭了?
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<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