How can I tell whether a web app was built using A

2019-01-23 01:59发布

How can I tell whether a (Drupal 7) web app was built using Angular, by e.g., looking at the page source, and not by asking the developers?

8条回答
男人必须洒脱
2楼-- · 2019-01-23 02:32
  • Application declared using ng-app directive

  • very simple controller and directive

  • check for ng-model, ng-repeater attributes in the code. All these attibutes are written in small letters.

  • Also you can check by typing in the console(ctrl + shift + i) and navigate to console tab. There type in window.angular.version --> it displays the version of the site your are currently inspecting.

查看更多
Root(大扎)
3楼-- · 2019-01-23 02:33

You could try: angular.version.full first. If this doesn't work, try getAllAngularRootElements()[0].attributes["ng-version"]. The reason being in Angular 1 the former will work and from angular 2 onwards the later will work.

查看更多
叼着烟拽天下
4楼-- · 2019-01-23 02:40

enter image description hereThe best way to check is to write "angular" on browser console. If you get any object [With child objects as "bind","bootstrap","callbacks","module" etc.] then its an angular web app.

查看更多
放我归山
5楼-- · 2019-01-23 02:43

There is a Google Chrome extension called 'ng-detector'. It may be obtained from the Google webstore:

https://chrome.google.com/webstore/detail/ng-detector/fedicaemhcfcmelihceehhaodggfeffm

It creates a small icon next to the URL bar that indicates whether or not it thinks the page was created using Angular, although I have not thoroughly tested its validity.

查看更多
霸刀☆藐视天下
6楼-- · 2019-01-23 02:45

If it's an online site you can use http://builtwith.com/ and it usually can give you a good and useful bunch of information about that site.

However if they are using angular you can take a look at their page sources to see if they are using any attributes of angular like ng-repeat for example

You can also take a look at the sources that your browser get while browsing that site to see if javascript files for angularjs are included among the sources.

查看更多
看我几分像从前
7楼-- · 2019-01-23 02:48

You can install a Chrome or Firefox extension called Augury. It tells you if app is an angular or not.

enter image description here

查看更多
登录 后发表回答