docs: update host and viewproviders section with correct logical tree representation (#42403)

Fixes #38741

PR Close #42403
This commit is contained in:
David Shevitz 2021-05-28 00:08:55 +00:00 committed by Jessica Janiuk
parent 268e0040e7
commit aea56048f6
1 changed files with 2 additions and 2 deletions

View File

@ -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>