Mercurial > hg > ng2-query-ismi
view app/query-result-row.component.ts @ 7:6cd6c09032aa
object type query with results!
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 15 Jan 2016 20:00:47 +0100 |
parents | |
children | 402c7229dc7c |
line wrap: on
line source
import {Component} from 'angular2/core'; @Component({ selector: 'query-result-row', template: ` <span *ngIf="rowType=='node'">{{rowData.data.label}}</span> <span *ngIf="rowType=='text'">{{rowData}}</span> `, inputs: ['rowData', 'rowType'] }) export class QueryResultRowComponent { public rowData: any; public rowType: string; }