Mercurial > hg > ng2-query-ismi
annotate app/app.component.ts @ 0:39ec75917ef7
first checkin
author | casties |
---|---|
date | Thu, 07 Jan 2016 15:04:15 +0100 |
parents | |
children | 59b7c3afcc6b |
rev | line source |
---|---|
0 | 1 import {Component} from 'angular2/core'; |
2 | |
3 import {QuerySelectComponent} from './query-select.component'; | |
4 | |
5 @Component({ | |
6 selector: 'my-text', | |
7 template: ` | |
8 <h1>My Angular 2 Text: {{title}}</h1> | |
9 <p>Selected option: {{selectedOption}}</p> | |
10 <query-select [selectedOption]="selectedOption"></query-select> | |
11 `, | |
12 directives: [QuerySelectComponent] | |
13 }) | |
14 export class AppComponent { | |
15 public title = 'huhu!'; | |
16 public selectedOption = 'unknown'; | |
17 } |