docs: update host and viewproviders section with correct logical tree representation (#42403)
Fixes #38741 PR Close #42403
This commit is contained in:
parent
268e0040e7
commit
aea56048f6
|
@ -1019,10 +1019,10 @@ The logical tree representation shows why this is:
|
|||
<app-root @NgModule(AppModule)
|
||||
@Inject(AnimalService=>"🐳")>
|
||||
<#VIEW @Provide(AnimalService="🦔")
|
||||
@Inject(AnimalService, @SkipSelf, @Host, @Optional)=>"🦔">
|
||||
@Inject(AnimalService, @Optional)=>"🦔">
|
||||
<!-- ^^@SkipSelf() starts here, @Host() stops here^^ -->
|
||||
<app-child>
|
||||
<#VIEW @Provide(AnimalService="🐶")
|
||||
<#VIEW @Provide(AnimalService="🦔")
|
||||
@Inject(AnimalService, @SkipSelf, @Host, @Optional)=>"🐶">
|
||||
<!-- Add @SkipSelf ^^-->
|
||||
</#VIEW>
|
||||
|
|
Loading…
Reference in New Issue