Mercurial > hg > ng2-query-ismi
comparison app/app.component.ts @ 6:9f5473536a98
more query generation.
author | casties |
---|---|
date | Thu, 14 Jan 2016 17:19:35 +0100 |
parents | b06a5d61afed |
children |
comparison
equal
deleted
inserted
replaced
5:b06a5d61afed | 6:9f5473536a98 |
---|---|
8 @Component({ | 8 @Component({ |
9 selector: 'my-text', | 9 selector: 'my-text', |
10 template: ` | 10 template: ` |
11 <h1>My Angular 2 Text: {{title}}</h1> | 11 <h1>My Angular 2 Text: {{title}}</h1> |
12 <p>Selected option: {{selectedOption}}</p> | 12 <p>Selected option: {{selectedOption}}</p> |
13 <query-select [selectedOption]="selectedOption"></query-select> | 13 <query-select></query-select> |
14 <query-result></query-result> | 14 <query-result></query-result> |
15 `, | 15 `, |
16 directives: [QuerySelectComponent, QueryResultComponent], | 16 directives: [QuerySelectComponent, QueryResultComponent], |
17 providers: [QueryService, HTTP_PROVIDERS] | 17 providers: [QueryService, HTTP_PROVIDERS] |
18 }) | 18 }) |