Mercurial > hg > ng2-query-ismi
annotate app/app.component.ts @ 4:351c3df28602
work on result component.
author | casties |
---|---|
date | Wed, 13 Jan 2016 16:01:47 +0100 |
parents | 59b7c3afcc6b |
children | b06a5d61afed |
rev | line source |
---|---|
0 | 1 import {Component} from 'angular2/core'; |
2 | |
4 | 3 import {QueryState} from './query-state'; |
0 | 4 import {QuerySelectComponent} from './query-select.component'; |
4 | 5 import {QueryResultComponent} from './query-result.component'; |
0 | 6 |
7 @Component({ | |
8 selector: 'my-text', | |
9 template: ` | |
10 <h1>My Angular 2 Text: {{title}}</h1> | |
11 <p>Selected option: {{selectedOption}}</p> | |
12 <query-select [selectedOption]="selectedOption"></query-select> | |
4 | 13 <query-result [queryState]="queryState"></query-result> |
0 | 14 `, |
4 | 15 directives: [QuerySelectComponent, QueryResultComponent] |
0 | 16 }) |
1
59b7c3afcc6b
first interface and http request.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
0
diff
changeset
|
17 |
0 | 18 export class AppComponent { |
19 public title = 'huhu!'; | |
1
59b7c3afcc6b
first interface and http request.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
0
diff
changeset
|
20 public selectedOption = 'unknown'; |
59b7c3afcc6b
first interface and http request.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
0
diff
changeset
|
21 |
4 | 22 public queryState: QueryState; |
23 | |
24 | |
0 | 25 } |