Install preview release version of Angular
If there are significant changes in Angular, the core team often releases a preview version before the official release. The main reason is that devs could play with it, give feedback, find bugs, etc.
Sometimes it’s exciting to see these features even before it is released. So in this article, I will show how to get the preview release version.
As I write this article, the latest preview version is “v16.0.0-next.7”; hence I’ll use this version to demonstrate.
Example
First, create a project called preview ( name doesn’t matter )
ng new preview
My global @angular/cli
has version 14, so it will install Angular v14.
Next, we need to update it to version v16.0.0-next.7
To do that, we need to use ng update with the two major packages
@angular/core and @angular/cli
These two packages are released separately. Thus, we need to check the preview versions for both of them:
@angular/core
https://github.com/angular/angular/releases@angular/cli
https://github.com/angular/angular-cli/releases
Most of the time, the version numbers match, but we still need to verify it.