-
Notifications
You must be signed in to change notification settings - Fork 24.8k
/
app.component.html
41 lines (34 loc) 路 968 Bytes
/
app.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<h2>Angular and Content Projection</h2>
<!-- #docregion single-slot -->
<app-zippy-basic>
<p>Is content projection cool?</p>
</app-zippy-basic>
<!-- #enddocregion single-slot -->
<hr />
<!-- #docregion multi-slot -->
<app-zippy-multislot>
<p question>
Is content projection cool?
</p>
<p>Let's learn about content projection!</p>
</app-zippy-multislot>
<!-- #enddocregion multi-slot -->
<hr />
<h2>Here's a zippy</h2>
<app-example-zippy>
<button appExampleZippyToggle>Is content project cool?</button>
<!-- #docregion ng-template-->
<ng-template appExampleZippyContent>
It depends on what you do with it.
</ng-template>
<!-- #enddocregion ng-template -->
</app-example-zippy>
<hr />
<app-zippy-ngprojectas>
<p>Let's learn about content projection!</p>
<!-- #docregion ngprojectas-->
<ng-container ngProjectAs="[question]">
<p>Is content projection cool?</p>
</ng-container>
<!-- #enddocregion-->
</app-zippy-ngprojectas>