Skip to content
Home » Ways to find the angular version

Ways to find the angular version

angular version

In this article, We will learn about different ways to find the angular version used in an application.


You must have encountered a situation where you want to find what angular version is used in your application. There are many different ways for this so let’s see all those one by one.

  1. Browser’s developer tool bar:
    • Open your application in a browser and then go to the ‘Elements’ tab and search for ‘ng-version’.

      find the angular version using UI
  2. Command line:
    • Open your terminal/command line and go to the directory where your angular application code is present.
    • And then execute ‘ng --version‘ or ‘ng version‘ or ‘ng v‘ command to get the angular version used in your application.
      find the angular version using ng version command

    • You can also run ‘npm list --depth 0‘ from your application folder to get all the packages installed.
    • You can find there angular version In the list of installed packages as highlighted in below screen.

      npm list command line
  3. Application code:
    • Import VERSION package in your code and then use it to get the angular version used in your application.

      ng version code
  4. package.json: file
    • Open the package.json file in your application root folder and look for the version of @angular/core.

      package.json in application's root folder
    • Open the package.json file in your application’s node_modules/@angular/core/package.json and look for ‘version’.

      package json application's node module


References


I hope you like this article and helps you to solve your problems.

Visit Techtalkbook to find more related topics.


Related Posts


Leave a Reply

Your email address will not be published. Required fields are marked *

0 Shares
Tweet
Pin
Share
Share
Share