AngularJS - Get List of All Registered Services?

后端 未结 4 2187

Can I get a list of all registered directives, services, controllers, etc. at runtime . . . ?

4条回答
  •  不知归路
    2020-11-30 19:45

    I've created a GitHub gist with some code that can output the dependencies in a Graphviz friendly format. Which means you should be able to visualize the dependency graph.

    See https://gist.github.com/dlidstrom/a2f787cef41ea4fcb8aa74d459f49270.

提交回复
热议问题