From a88b899f52b2a9c7d8a042f54823107ebbb425f5 Mon Sep 17 00:00:00 2001 From: Matthieu Riegler Date: Sun, 8 Dec 2024 02:07:21 +0100 Subject: [PATCH] docs: fix mermaid DI diagram. (#59105) We need to use `
` for linebreakes. fixes #59104 PR Close #59105 --- .../content/guide/di/hierarchical-dependency-injection.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adev/src/content/guide/di/hierarchical-dependency-injection.md b/adev/src/content/guide/di/hierarchical-dependency-injection.md index b3d5da19540..af5ea8b3fc6 100644 --- a/adev/src/content/guide/di/hierarchical-dependency-injection.md +++ b/adev/src/content/guide/di/hierarchical-dependency-injection.md @@ -94,9 +94,9 @@ The following diagram represents the relationship between the `root` `ModuleInje ```mermaid stateDiagram-v2 - elementInjector: EnvironmentInjector\n(configured by Angular)\nhas special things like DomSanitizer => providedIn 'platform' - rootInjector: root EnvironmentInjector\n(configured by AppConfig)\nhas things for your app => bootstrapApplication(..., AppConfig) - nullInjector: NullInjector\nalways throws an error unless\nyou use @Optional() + elementInjector: EnvironmentInjector
(configured by Angular)
has special things like DomSanitizer => providedIn 'platform' + rootInjector: root EnvironmentInjector
(configured by AppConfig)
has things for your app => bootstrapApplication(..., AppConfig) + nullInjector: NullInjector
always throws an error unless
you use @Optional() direction BT rootInjector --> elementInjector