i know 'ng --version' to check my angular version on command line. But is there a way to get angular version in code to display it on the website ?
1 Answer
You can import VERSION and use it where needed:
import { VERSION } from '@angular/core';
This will give you an instance of the Version class with the current values for Angular.
Have a look at the live demo.