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
aio/content/guide
|
@ -1019,10 +1019,10 @@ The logical tree representation shows why this is:
|
||||||
<app-root @NgModule(AppModule)
|
<app-root @NgModule(AppModule)
|
||||||
@Inject(AnimalService=>"🐳")>
|
@Inject(AnimalService=>"🐳")>
|
||||||
<#VIEW @Provide(AnimalService="🦔")
|
<#VIEW @Provide(AnimalService="🦔")
|
||||||
@Inject(AnimalService, @SkipSelf, @Host, @Optional)=>"🦔">
|
@Inject(AnimalService, @Optional)=>"🦔">
|
||||||
<!-- ^^@SkipSelf() starts here, @Host() stops here^^ -->
|
<!-- ^^@SkipSelf() starts here, @Host() stops here^^ -->
|
||||||
<app-child>
|
<app-child>
|
||||||
<#VIEW @Provide(AnimalService="🐶")
|
<#VIEW @Provide(AnimalService="🦔")
|
||||||
@Inject(AnimalService, @SkipSelf, @Host, @Optional)=>"🐶">
|
@Inject(AnimalService, @SkipSelf, @Host, @Optional)=>"🐶">
|
||||||
<!-- Add @SkipSelf ^^-->
|
<!-- Add @SkipSelf ^^-->
|
||||||
</#VIEW>
|
</#VIEW>
|
||||||
|
|
Loading…
Reference in New Issue