Angular is a popular web application development framework that is widely used by developers worldwide. The framework is constantly evolving, with new features and functionalities being added in every release. As a developer, it is essential to keep up with the latest version of Angular to ensure that your application is using the latest features, and to stay up-to-date with any security fixes or bug patches.

Advertisement

In this article, we will explain how to check the Angular version of your application and the Angular CLI version installed on your system. We will guide you through the steps to check the version of your Angular application and provide you with the necessary commands to check the version of the Angular CLI. By following these steps, you can ensure that you are using the latest version of Angular and take advantage of its new features and functionalities.

Check Angular Application Version

You can enter the following command in the Command Prompt or Terminal window while in the root directory of your Angular application:

npm list @angular/core 

This command displays the version of the @angular/core package installed in your application, along with its dependencies.

You can also find the angular version used by the application under package.json file. To check this Go into node_modules/@angular/core/package.json file and check version field.

You will see the version like this:

  "version": "8.2.14"

Check Installed Angular CLI Version

Angular provides `ng` command to work with command line. To find out installed Angular version execute following command from terminal:

ng --version 
Output:
_ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | | / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| |___/ Angular CLI: 8.3.0 Node: 12.18.2 OS: linux x64 Angular: 8.2.14 ... animations, common, compiler, compiler-cli, core, forms ... language-service, platform-browser, platform-browser-dynamic ... router Package Version ----------------------------------------------------------- @angular-devkit/architect 0.803.29 @angular-devkit/build-angular 0.803.29 @angular-devkit/build-optimizer 0.803.29 @angular-devkit/build-webpack 0.803.29 @angular-devkit/core 8.3.29 @angular-devkit/schematics 8.3.0 (cli-only) @angular/cli @ngtools/webpack 8.3.29 @schematics/angular 8.3.0 (cli-only) @schematics/update 0.803.0 (cli-only) rxjs 6.4.0 typescript 3.5.3 webpack 4.39.2

Conclusion

By following the above steps, you can check the Angular CLI version installed on your system and the Angular version used in your application. Checking the Angular version is important to ensure that you are using the latest features and functionalities of the Angular framework, and to identify any compatibility issues that may arise when updating your application.

Share.
Leave A Reply

Exit mobile version