Friday, 25 August 2017

angularjs - How can I check which version of Angular I'm using?



How can I tell which version of Angular I am using?



I have tried:



angular --version
angular --v
angular -version
angular -v



but get -bash: angular: command not found



I know by yeoman --version that I am using 0.9.6



But how do get the angularjs version?


Answer



Edit: When this answer was written, there was only AngularJS 1.x. Look in the answers below for Angular versions >= 2.




AngularJS does not have a command line tool.



You can get the version number from the JavaScript file itself.



Header of the current angular.js:



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

*/

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...