File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed
Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff 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: '<h1>Hello {{name}}!</h1>'
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) ">
You can’t perform that action at this time.
0 commit comments