docs: Fix wrongly provided/Injected AnimalService (#42988)
In the logical tree example which demonstrate the use of `@SkipSelf` and `@Host`, the provided and injected `AnimalService` are reversed. PR Close #42988
This commit is contained in:
parent
8ce1ac603a
commit
9e30824ef8
|
@ -1021,8 +1021,8 @@ The logical tree representation shows why this is:
|
||||||
@Inject(AnimalService, @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>
|
||||||
</app-child>
|
</app-child>
|
||||||
|
|
Loading…
Reference in New Issue