Mercurial > hg > ng2-query-ismi
view app/query-result-row.component.ts @ 12:1843b12eff9a
cleaning output.
author | casties |
---|---|
date | Thu, 21 Jan 2016 11:16:13 +0100 |
parents | 402c7229dc7c |
children | 98b435bb6c0c |
line wrap: on
line source
import {Component} from 'angular2/core'; @Component({ selector: 'query-result-row', template: ` <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; }