Skip to content

Commit

Permalink
docs: modify header and path of code-example (#45828)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alefra86 authored and jessicajaniuk committed Jun 10, 2022
1 parent 974da3f commit d6c370b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aio/content/guide/content-projection.md
Expand Up @@ -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.
Expand Down

0 comments on commit d6c370b

Please sign in to comment.