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

Fixes 

PR Close 
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) <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>