简体   繁体   English

Angular2+可视化组件层级/模板层级

[英]Angular2+ visualize component hierarchy/template hierarchy

Is there a plugin or a program that takes in a angular2+ application and draws component hierarchy and template hierarchy.是否有插件或程序接受 angular2+ 应用程序并绘制组件层次结构和模板层次结构。

I would like to see the overall structure of my app, but I can't seem to find anything that can visualize it.我想看看我的应用程序的整体结构,但我似乎找不到任何可以可视化它的东西。 I found this but this only gived dependency hierarchy.我找到了这个,但这只给出了依赖层次结构。 I also need the see what template uses what other templates and how are the components and services connected to each other.我还需要查看哪些模板使用哪些其他模板以及组件和服务如何相互连接。 It would be a really nice way to draw border between potential modules and to re-organize the project structure to be more clean.这将是在潜在模块之间划定边界并重新组织项目结构以使其更加清晰的一种非常好的方法。

Augury is an excellent tool available as a Chrome Browser Extension that lets you also visualize component tree structure in Angular. Augury 是一个出色的工具,可以作为 Chrome 浏览器扩展使用,它还可以让您在 Angular 中可视化组件树结构。 It has many other features that can help you get more insight into your application and optimize push strategies and module loading.它还有许多其他功能可以帮助您更深入地了解您的应用程序并优化推送策略和模块加载。 Augury wires with the standard Chrome Developer Tools and it has exactly all the features you asked for. Augury 与标准的 Chrome 开发者工具相连,它完全具备您要求的所有功能。 You can install it from the Chrome Web Store for free and it's an open source solution built and maintained in cooperation by Angular team and Rangle.io so you can expect it to be up to date most of the time.您可以从 Chrome 网上应用店免费安装它,它是一个开源解决方案,由 Angular 团队和 Rangle.io 合作构建和维护,因此您可以期望它在大部分时间都是最新的。

There are 2 tools that I can suggest:我可以推荐两种工具:

  1. https://compodoc.app/ https://compodoc.app/
  2. https://github.com/mgechev/ngrev https://github.com/mgechev/ngrev

Both helps you visualize your Angular app.两者都可以帮助您可视化 Angular 应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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