For Angular 7, type the below command to install Angular 7 globally on your machine.
Then, type the below command to check if Angular CLI is correctly installed or not.
ng version
As you see, we have Angular 7.0.5 installed but not the beta version. Let's see next steps how to achieve it.
Step 2
Install Angular 7 Beta globally on the machine. Open the terminal and type the below command.
npm i @angular/cli@next -g
It allows installing Angular 7 Beta version globally (-g stands for globally) on our machine.
For Linux or Mac, we should add sudo to grant the installation permission.
sudo npm i @angular/cli@next -g
Now, the Angular 7 Beta version (7.3.0-beta.0) is installed on our machine, as shown in below image.
Then, type the below command to check if Angular CLI Beta version is correctly installed or not.
ng version
Features of Angular 7 Beta version in detail
- Angular Compatibility Compiler (ngcc) is used to convert the node_modules.
- It includes bug fixes as in Bazel; compile_strategy() is now used to build Angular code using ngc or ngtsc.
- compile_strategy() is included in Angular 7 beta version.
- Angular 7 beta version is enabled with better error handling for @output in cases.
- The reference() (r()) instead of closures takes a nesting level, and the local index of ref then walks the view tree to find the accurate view and it stores the local ref.w. from that path.
- TView.components are used to host element indices.
- It enables g3 BUILD rules.
- It allows ivy testing in g3.
- The parent contexts instead of template functions are used to get rid of the need to create multiple function instances for loops that are nested inside other loops.
- Template functions are not implemented in Ivy.
SUMMARY
In this write-up, we have learned how to -
- Install Angular 7 Beta globally on Windows, Linux, and Mac
- Check if Angular CLI Beta is correctly installed or not
- Check if different packages of Angular CLI are installed with Beta version