Mercurial > hg > ng2-query-ismi
view app/query-result-row.component.ts @ 9:402c7229dc7c
more query generation.
author | casties |
---|---|
date | Wed, 20 Jan 2016 11:32:31 +0100 |
parents | 6cd6c09032aa |
children | 1843b12eff9a |
line wrap: on
line source
import {Component} from 'angular2/core'; @Component({ selector: 'query-result-row', template: ` <td *ngIf="rowType=='node'">{{rowData.type}}</td> <td *ngIf="rowType=='node'">{{rowData.label}}</td> <td *ngIf="rowType=='text'">{{rowData}}</td> `, inputs: ['rowData', 'rowType'] }) export class QueryResultRowComponent { public rowData: any; public rowType: string; }