forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
137 lines (110 loc) · 3.99 KB
/
test.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<h1>Test Code Page</h1>
<h2><code-tabs></h2>
<p>No linenums at code-tabs level</p>
<code-tabs>
<code-pane header='TS code file' language='ts'>
class {
foo(param: string) {}
}
</code-pane>
<code-pane header='HTML content file' language='html'><h1>Heading</h1></code-pane>
<code-pane header='JSON data file' language='json' class='avoid'>{ "key": "value" }</code-pane>
</code-tabs>
<p></p>
<p>linenums=true at code-tabs level</p>
<code-tabs linenums='true'>
<code-pane header='TS code file' language='ts'>
class {
foo(param: string) {}
}
</code-pane>
<code-pane header='HTML content file' language='html'><h1>Heading</h1></code-pane>
<code-pane header='JSON data file' language='json' class='avoid'>{ "key": "value" }</code-pane>
</code-tabs>
<p></p>
<p>No linenums at code-tabs level; linenums=true for second HTML pane</p>
<code-tabs >
<code-pane header='TS code file' language='ts'>
class {
foo(param: string) {}
}
</code-pane>
<code-pane header='HTML content file' language='html' linenums='true'><h1>Heading</h1></code-pane>
<code-pane header='JSON data file' language='json' class='avoid'>{ "key": "value" }</code-pane>
</code-tabs>
<p></p>
<h2><code-example></h2>
<p>One line.</p>
<code-example>const foo = 'bar'</code-example>
<p>Multi-line, linenums=true.</p>
<code-example linenums='true'>
<hero-details <em>nghost-pmm-5>
<h2 </em>ngcontent-pmm-5>Bah Dah Bing</h2>
<hero-team <em>ngcontent-pmm-5 </em>nghost-pmm-6>
<h3 _ngcontent-pmm-6>Headless Team</h3>
</hero-team>
</hero-details>
</code-example>
<p>Default linenums (false).</p>
<code-example>
<hero-details <em>nghost-pmm-5>
<h2 </em>ngcontent-pmm-5>Mister Fantastic</h2>
<hero-team <em>ngcontent-pmm-5 </em>nghost-pmm-6>
<h3 _ngcontent-pmm-6>Headless Team</h3>
</hero-team>
</hero-details>
</code-example>
<p>Header on this one.</p>
<code-example header="hero-details.component.ts (excerpt)">
<hero-details <em>nghost-pmm-5>
<h2 </em>ngcontent-pmm-5>Mister Fantastic</h2>
<hero-team <em>ngcontent-pmm-5 </em>nghost-pmm-6>
<h3 _ngcontent-pmm-6>Winning Team</h3>
</hero-team>
</hero-details>
</code-example>
<p>An "avoid" header on this one.</p>
<code-example class="avoid" header="hero-details.component.ts (Avoid)">
<hero-details <em>nghost-pmm-5>
<h2 </em>ngcontent-pmm-5>Mister Fantastic</h2>
<hero-team <em>ngcontent-pmm-5 </em>nghost-pmm-6>
<h3 _ngcontent-pmm-6>Losing Team</h3>
</hero-team>
</hero-details>
</code-example>
## Backticked code blocks
```html
<hero-details>
<h2>Mister Fantastic</h2>
<hero-team>
<h3>Losing Team</h3>
</hero-team>
</hero-details>
```
<h2><live-example></h2>
<p>Plain live-example</p>
Try this <live-example></live-example>.
<p>live-example with title atty</p>
<live-example title="Good Example"></live-example>
<p>live-example with title body</p>
<live-example title="Good Example">Try this great example</live-example>
<p>live-example with name</p>
<live-example name="testy" title="Better Example"></live-example>
<p>live-example with spacey name and stackblitz</p>
<live-example name=" testy " stackblitz="super-stackblitz"></live-example>
<p>live-example with name and stackblitz but no download</p>
<live-example name="testy" stackblitz="super-stackblitz" noDownload></live-example>
<p>live-example embedded with name and stackblitz</p>
<live-example embedded name="testy" stackblitz="super-stackblitz"></live-example>
<p>More text follows ...</p>
<p>Getting Started Widgets</p>
<p>Interpolation</p>
<aio-gs-interpolation></aio-gs-interpolation>
<p>Property Binding</p>
<aio-gs-property-binding></aio-gs-property-binding>
<p>Event Binding</p>
<aio-gs-event-binding></aio-gs-event-binding>
<p>NgIf</p>
<aio-gs-ng-if></aio-gs-ng-if>
<p>NgFor</p>
<aio-gs-ng-for></aio-gs-ng-for>