Mercurial > hg > ng2-query-ismi
annotate app/app.component.ts @ 3:c741a00d38de
first list of object types :-)
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 13 Jan 2016 12:41:01 +0100 |
parents | 59b7c3afcc6b |
children | 351c3df28602 |
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 }) | |
1
59b7c3afcc6b
first interface and http request.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
0
diff
changeset
|
14 |
0 | 15 export class AppComponent { |
16 public title = 'huhu!'; | |
1
59b7c3afcc6b
first interface and http request.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
0
diff
changeset
|
17 public selectedOption = 'unknown'; |
59b7c3afcc6b
first interface and http request.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
0
diff
changeset
|
18 |
0 | 19 } |