Skip to content

[FEATURE] Show dependency graph for Angular standalone components #1296

Closed

Description

@qamhiehharri
Overview of the feature

Angular introduced standalone components as a way to make NgModules optional to use.
Currently, Compodoc doesn't show dependency graphs for standalone components imports and providers.

Feature request: build and show dependency graphs for standalone components, and properly link them together and other NgModules.

Motivation for or Use Case

Switching to standalone components makes Compodoc not useful if it doesn't build and show dependency graphs.

Thank you

Activity

  1. stale commented on Jan 8, 2023

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  2. GreenEleven commented on Feb 3, 2023

    @GreenEleven

    This is a super important feature request since Angular is going to move towards standalone components.

  3. haskelcurry commented on Feb 8, 2023

    @haskelcurry

    Any updates / plans on this? It's absolutely crucial

  4. GabrielF-C commented on Apr 15, 2023

    @GabrielF-C

    Angular apps can be built without using modules now, the tool is incomplete without this feature.

    An Angular application can be bootstrapped without any NgModule by using a standalone component as the application's root component.
    source

    Also, I think it would be important to support routing using provideRouter without modules for the same reason.

  5. korneliusz-w commented on Dec 7, 2023

    @korneliusz-w

    any news when standalone components will be add to compodoc ?

  6. deleted a comment from stale on Dec 8, 2023
  7. vogloblinsky commented on Dec 8, 2023

    @vogloblinsky
    Contributor

    Hi,
    I will try to enhance the current graph engine with standalone components using this demo project : https://github.com/nartc/ng-conduit

  8. added this to the 1.2.0 milestone on Dec 8, 2023
  9. Ajuriaa commented on May 9, 2024

    @Ajuriaa

    Is there any update in standalone based angular app using provideRouter?

  10. robmanganelly commented on Sep 19, 2024

    @robmanganelly

    any update ? thanks

  11. pitchan commented on Oct 14, 2024

    @pitchan

    Up ! since we upgraded and changed modules by standalone approach we lost possibility to get diagrams

  12. Thoemmy commented on Jan 7, 2025

    @Thoemmy

    I find it surprising that this feature is not supported yet, given that Compodoc is positioned as an Angular documentation tool.

    The standalone feature has been available since Angular v14 and higher, so I believe it would make sense to prioritize this request.

    Could you please give us an update regarding this feature?

  13. haskelcurry commented on Jan 21, 2025

    @haskelcurry

    Agree with @Thoemmy, especially since standalone is the default since v19.

  14. comanescuadrian95 commented on Mar 25, 2025

    @comanescuadrian95

    I've been eagerly awaiting this feature since Angular 19 launched, as the dependency graph is the bread and butter of Compodoc. This is exactly why I chose it over ngDoc or Storybook.

  15. korneliusz-w commented on Mar 25, 2025

    @korneliusz-w
  16. Buslowicz commented on Jun 16, 2025

    @Buslowicz

    It's June 2025, almost 3 years after the issue has been reported. Can anybody on the compodoc team give a statement on whether this bug (no, right now it is not a feature) will be fixed (and if so - when), or is compodoc going to ignore this and not preparing a fix?

  17. HenkWork commented on Nov 6, 2025

    @HenkWork

    @vogloblinsky Can you update this feature request? We also work with a lot of standalone components, and if you use them during import, they'll be listed under modules. That file just isn't there :)

  18. added a commit that references this issue on May 26, 2026
    573b56e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions