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

前端 未结 28 1282
死守一世寂寞
死守一世寂寞 2020-11-28 18:23

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

I have tried:

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

but get

28条回答
  •  猫巷女王i
    2020-11-28 18:50

    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
     */
    

提交回复
热议问题