Skip to content

Commit 5d65377

Browse files
committed
TS
1 parent 7361c77 commit 5d65377

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

index.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,25 @@ <h3>ES5 Namespace Pattern</h3>
246246
</p>
247247
</section>
248248
</section>
249-
249+
<section>
250+
<h1 style="font-size: 2em" class="fallbackColor" >We have even more than ES2015...</h1>
251+
<img src="src/img/ts-logo.svg" style="border: none; box-shadow: none">
252+
</section>
253+
<section>
254+
<h3>Typical Angular 2 Component</h3>
255+
<pre><code class="javascript" data-trim data-noescape>
256+
import {Input, Component} from '@angular/core';
257+
258+
@Component({
259+
selector: 'hello',
260+
template: '&lt;h1&gt;Hello {{name}}!&lt;/h1&gt;'
261+
} as Component)
262+
export class HelloComponent {
263+
@Input()
264+
name: string;
265+
}
266+
</code></pre>
267+
</section>
250268

251269

252270
<section data-background-color="var(--secondary-color)">

src/img/ts-logo.svg

Lines changed: 15 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)