in Javascript

How to check the version of Angular JS ?

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Angular JS does not have a command line tool to get its version, but we can get the version number from the JavaScript file itself.

Header of the current angular.js:

/**
* @license AngularJS v1.5.3
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/

Using developer tools console

We can also open the console on the developer tools of whatever browser we use and type angular.version to access the Javascript object that holds angular version.

Very useful when the script is minified with no header comment.

Related Posts

Written By:

Blog for everything about hosting, website, server and technical support

Add a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.