angular-docs-cn/aio/content/guide/updating.md

4.2 KiB

Keeping your Angular Projects Up-to-Date

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 app up-to-date enables you to take advantage of leading-edge new features, as well as optimizations and bug fixes.

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

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

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

{@a announce}

Getting notified of new releases

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

{@a learn}

Learning about new features

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

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

{@a checking-version-app}

Checking your version of Angular

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

{@a checking-version-angular}

Finding the current version of Angular

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).

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.

{@a updating}

Updating your environment and apps

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

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.

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

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.

{@a resources}

Resource summary