Mercurial > hg > ng2-query-ismi
view 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 |
line wrap: on
line source
import {Component} from 'angular2/core'; import {QuerySelectComponent} from './query-select.component'; @Component({ selector: 'my-text', template: ` <h1>My Angular 2 Text: {{title}}</h1> <p>Selected option: {{selectedOption}}</p> <query-select [selectedOption]="selectedOption"></query-select> `, directives: [QuerySelectComponent] }) export class AppComponent { public title = 'huhu!'; public selectedOption = 'unknown'; }