I have setup the angular code on my local machine. I need to know the version of the angular that I am using in the project. how can I easily find it in cmd prompt?
There are several ways you can do that:
node_modules/@angular/core/package.json
version
If you need to use it in your code, you can import it from the @angular/core:
@angular/core
import { VERSION } from '@angular/core';
Inspect the rendered DOM - Angular adds the version to the main component element:
<my-app ng-version="4.1.3">
1.4m articles
1.4m replys
5 comments
56.9k users