简体   繁体   中英

Angular2 equivalent for angular.version in AngularJS

In the browser's developer console (press F12 to open it), typing the following "angular.version" will give the version of AngularJS APP loaded on page.

Is there an equivalent of it for Angular2.

没有等效的控制台命令,但是可以使用以下命令:

getAllAngularRootElements()[0]['attributes'][1];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM