Angular 版本及关键特性 | AI生成和翻译
以下是从 Angular 9 到当前版本的 Angular 版本列表:
Angular 9 (2020年2月)
- 默认启用 Ivy compiler
- 更小的 bundle sizes
- 更好的 debugging
Angular 10 (2020年6月)
- 支持 TypeScript 3.9
- 可选的更严格设置
- 新的 date range picker
Angular 11 (2020年11月)
- 更快的 builds
- TSLint 已弃用,建议迁移到 ESLint
- 更新了 Hot Module Replacement (HMR)
Angular 12 (2021年5月)
- Ivy 无处不在 (View Engine 已移除)
- 新项目默认使用 ESLint
- 模板支持 Nullish coalescing
Angular 13 (2021年11月)
- 完全移除 View Engine
- 不再支持 IE11
- 改进了 forms 的易用性
Angular 14 (2022年6月)
- Standalone components (开发者预览版)
- Typed forms
- 简化了页面标题的 accessibility
Angular 15 (2022年11月)
- Standalone components 进入稳定版
- Directive composition API
- 用于优化的 Image directive
Angular 16 (2023年5月)
- Signals (开发者预览版)
- Required inputs
- 改进的 server-side rendering
Angular 17 (2023年11月)
- 全新的品牌形象和 logo
- 内置控制流 (@if, @for, @switch)
- Deferrable views
- Signals 进入稳定版
Angular 18 (2024年5月)
- Zoneless change detection (实验性)
- Material 3 components
- 改进的 hydration
Angular 19 (2024年11月) - 当前稳定版本
- Incremental hydration
- Hot module replacement 改进
- Linked signals
- Resource API
Angular 遵循可预测的发布周期,每 6 个月发布一个大版本(通常在 5 月和 11 月)。