docs: modify header and path of code-example (#45828)

In the example, @ContentChild is used in app.component.ts but the component we want to project content into is example-zippy.component.ts.
PR Close #45828
This commit is contained in:
alefra
2022-04-30 13:51:28 +02:00
committed by Jessica Janiuk
parent 974da3f802
commit d6c370bc67
+1 -1
View File
@@ -129,7 +129,7 @@ The following steps demonstrate a typical implementation of conditional content
1. In the component you want to project content into, use `@ContentChild` to get the template of the projected content.
<code-example header="content-projection/src/app/app.component.ts" path="content-projection/src/app/app.component.ts" region="contentchild"></code-example>
<code-example header="content-projection/src/app/example-zippy.component.ts" path="content-projection/src/app/example-zippy.component.ts" region="contentchild"></code-example>
Prior to this step, your application has a component that instantiates a template when certain conditions are met.
You've also created a directive that provides a reference to that template.