2017-03-27 05:04:48 -04:00
|
|
|
<h1>Test Code Page</h1>
|
|
|
|
|
|
|
|
<h2><code-tabs></h2>
|
|
|
|
|
|
|
|
<p>No linenums at code-tabs level</p>
|
|
|
|
<code-tabs >
|
|
|
|
<code-pane title='TS code file' language='ts'>class {
|
2017-03-28 11:22:44 -04:00
|
|
|
foo(param: string) {}
|
|
|
|
}</code-pane>
|
2017-03-27 05:04:48 -04:00
|
|
|
<code-pane title='HTML content file' language='html'><h1>Heading</h1></code-pane>
|
|
|
|
<code-pane title='JSON data file' language='json' class='is-anti-pattern'>{ "key": "value" }</code-pane>
|
|
|
|
</code-tabs>
|
|
|
|
<p></p>
|
|
|
|
|
|
|
|
<p>linenums=true at code-tabs level</p>
|
|
|
|
<code-tabs linenums='true'>
|
|
|
|
<code-pane title='TS code file' language='ts'>class {
|
2017-03-28 11:22:44 -04:00
|
|
|
foo(param: string) {}
|
|
|
|
}</code-pane>
|
2017-03-27 05:04:48 -04:00
|
|
|
<code-pane title='HTML content file' language='html'><h1>Heading</h1></code-pane>
|
|
|
|
<code-pane title='JSON data file' language='json' class='is-anti-pattern'>{ "key": "value" }</code-pane>
|
|
|
|
</code-tabs>
|
|
|
|
<p></p>
|
|
|
|
|
|
|
|
<p>No linenums at code-tabs level; linenums=true for HTML pane</p>
|
|
|
|
<code-tabs >
|
|
|
|
<code-pane title='TS code file' language='ts'>class {
|
2017-03-28 11:22:44 -04:00
|
|
|
foo(param: string) {}
|
|
|
|
}</code-pane>
|
2017-03-27 05:04:48 -04:00
|
|
|
<code-pane title='HTML content file' language='html' linenums='true'><h1>Heading</h1></code-pane>
|
|
|
|
<code-pane title='JSON data file' language='json' class='is-anti-pattern'>{ "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=false.</p>
|
|
|
|
<code-example linenums='false'>
|
|
|
|
<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.</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 title="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="is-anti-pattern" title="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>
|
|
|
|
|
|
|
|
<p>More text follows ...</p>
|