填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

持續更新你的 Angular 專案

Keeping your Angular projects up-to-date

就像 Web 及其整個生態系統一樣,Angular 也在持續改進中。Angular 平衡了持續改進與強調穩定性之間的衝突,努力讓升級變得更簡單。讓 Angular 應用始終保持最新,可以讓你獲得前沿的新特性所帶來的好處,還有各種優化和 Bug 修復。

Just like Web and the entire web ecosystem, Angular is continuously improving. Angular balances continuous improvement with a strong focus on stability and making updates easy. Keeping your Angular application up-to-date enables you to take advantage of leading-edge new features, as well as optimizations and bug fixes.

本文件包含一些資訊和資源,來幫助你持續更新 Angular 的應用和函式庫。

This document contains information and resources to help you keep your Angular applications and libraries up-to-date.

要了解我們的版本策略和實踐(包括支援或棄用某些特性時的做法,以及發佈計劃),請參閱 Angular 的版本與發佈

For information about our versioning policy and practices—including support and deprecation practices, as well as the release schedule—see Angular versioning and releases.

如果你正在使用 AngularJS,參閱從 AngularJS 升級AngularJS 是專用於 Angular v1.x 的名字。

If you are currently using AngularJS, see Upgrading from AngularJS. AngularJS is the name for all v1.x versions of Angular.

獲得新版本的發佈通知

Getting notified of new releases

要想獲得新版本發佈通知,請關注 Twitter 上的 @angular 或訂閱 Angular 官方部落格

To be notified when new releases are available, follow @angular on Twitter or subscribe to the Angular blog.

瞭解最新特性

Learning about new features

有什麼新特性?有哪些變化?我們會在 Angular 官方部落格的發佈宣告中和你共享那些最重要的資訊。

What's new? What's changed? We share the most important things you need to know on the Angular blog in release announcements.

要檢視完整的按版本組織的變更列表,參閱 Angular 更改記錄

To review a complete list of changes, organized by version, see the Angular change log.

檢查你的 Angular 版本

Checking your version of Angular

要檢查你的應用的 Angular 版本,就到專案目錄下執行 ng version 命令。

To check your application's version of Angular: From within your project directory, use the ng version command.

檢視 Angular 的當前版本

Finding the current version of Angular

Angular 文件站左側導航欄的底部可以看到 Angular 最新的穩定版版本號。比如 stable (v5.2.9)

The most recent stable released version of Angular appears in the Angular documentation at the bottom of the left side navigation. For example, stable (v5.2.9).

你還可以使用 CLI 命令 ng update發現 Angular 的最新版本。預設情況下,ng update(不帶其它引數)會列出你可用的所有更新。

You can also find the most current version of Angular by using the CLI command ng update. By default, ng update(without additional arguments) lists the updates that are available to you.

升級你的環境和應用

Updating your environment and apps

為了讓升級更簡單,我們在互動式 Angular 升級指南中提供了完整的操作指令。

To make updating easy, we provide complete instructions in the interactive Angular Update Guide.

Angular 升級指南提供了自訂的升級指令,基於當前版本和你指定的目標版本。它包括簡單的和進階的升級路徑,以適應你應用中的各種複雜情況。它還包括診斷資訊和建議的手動修改動作,以幫助你獲得最新版本。

The Angular Update Guide provides customized update instructions, based on the current and target versions that you specify. It includes basic and advanced update paths, to match the complexity of your applications. It also includes troubleshooting information and any recommended manual changes to help you get the most out of the new release.

對於簡單的升級工作,你所要做的一切就是執行一下 CLI 命令 ng update。不帶額外引數時,ng update會列出你可用的更新版本,並提供建議的升級步驟,來把你的應用升級到最新版本上來。

For simple updates, the CLI command ng updateis all you need. Without additional arguments, ng updatelists the updates that are available to you and provides recommended steps to update your application to the most current version.

Angular 版本與發佈中描述了你要如何根據版本號來推測所發生的更改等級。它還講了建議的升級路徑。

Angular Versioning and Releases describes the level of change that you can expect based a release's version number. It also describes supported update paths.

資源彙總

Resource summary