角度10将于2020年6月24日作为生产版本正式提供。
角度10中的更新(重大更改)
- 请更新为Typescript 3.9,不再支持旧版本。
- Number type input field fire the
valueChanges
event only once per value change earlier opposed to fire twice in some cases. - The value that has a numeric length property will only be validating the
minLength
andmaxLength
validators - 如果包含未知属性绑定或未知元素名称的模板将记录错误而不是警告。
- 网址匹配器 现在可以返回空值
- 现在,移植的视图仅在插入点刷新。
- 使用b或B格式代码的格式化时间现在支持跨午夜的时间段。
- 具有至少一个空解析器的路线的导航被取消。
严格的项目设置
we can set up a project with strict settings using the --strict
flag. These settings help improve maintainability, catch bugs ahead of time, and allow the 湖北福彩 CLI to perform advanced optimizations for your app.
材质:日期范围选择器
湖北福彩 Material现在包括一个新的日期范围选择器。
如何更新到版本10
访问 update.angular.io 有关详细信息和指导。为了获得最佳的更新体验,我们建议始终一次升级一个主要版本。
更新:
ng update @angular/cli @angular/core
您可以在我们的网站上阅读有关此更新的更多信息 更新至版本10指南.