Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/angular/cli/src/commands/update/long-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ ng update @angular/cli@^<major_version> @angular/core@^<major_version>
```

We recommend that you always update to the latest patch version, as it contains fixes we released since the initial major release.
For example, use the following command to take the latest 10.x.x version and use that to update.
For example, use the following command to take the latest 21.x.x version and use that to update.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While updating the version number makes the example more current, hardcoding a specific version like 21 can quickly become outdated and potentially confuse users if it doesn't align with the actual latest version. To make the documentation more timeless, consider rephrasing to make it clearer that this is an example of how to use the <major_version> placeholder mentioned above.

Suggested change
For example, use the following command to take the latest 21.x.x version and use that to update.
For example, to update to major version 21, you would use:

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try just keeping it updated by updating the number; I'm not sure if we should change it.


```
ng update @angular/cli@^10 @angular/core@^10
ng update @angular/cli@^21 @angular/core@^21
```

For detailed information and guidance on updating your application, see the interactive [Angular Update Guide](https://update.angular.dev/).
For detailed information and guidance on updating your application, see the interactive [Angular Update Guide](/update-guide).
Loading