How can I check which version of Angular from browser?

Due to Kyler's Help I figure it out that this template is not built with Angular-5. It's lower than the Angular 2 version beta.8 (I don't know the exact version but but it's not Angular-5).

They are showing that they are made with Angular-5 but it's not Because it show me the error.

Uncaught ReferenceError: getAllAngularRootElements is not defined

Because with reference to this git's issue :- https://github.com/rangle/augury/issues/245

I figure it out that getAllAngularRootElements() will work with Angular2 version beta.8 and greater. So, it means that it's lower than the Angular 2 version beta.8.

And I have tried this function with my Angular-5 application and that function works.

enter image description here


Simplest way is to Hit F12 on browser and in the console drawer type -

angular.version

and you will see the version. You can also do angular.version.full and this gives something like this "1.6.6"


Using the ng-version attribute is the correct way to identify the Angular version number. if you want more confirmation you can execute in console:

getAllAngularRootElements();

which will show you Angular elements. Or more accurately

 getAllAngularRootElements()[0].attributes["ng-version"];