mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: fix mermaid DI diagram. (#59105)
We need to use `<br>` for linebreakes. fixes #59104 PR Close #59105
This commit is contained in:
parent
de9fb8aeb8
commit
a88b899f52
1 changed files with 3 additions and 3 deletions
|
|
@ -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<br>(configured by Angular)<br>has special things like DomSanitizer => providedIn 'platform'
|
||||
rootInjector: root EnvironmentInjector<br>(configured by AppConfig)<br>has things for your app => bootstrapApplication(..., AppConfig)
|
||||
nullInjector: NullInjector<br>always throws an error unless<br>you use @Optional()
|
||||
|
||||
direction BT
|
||||
rootInjector --> elementInjector
|
||||
|
|
|
|||
Loading…
Reference in a new issue