Mercurial > hg > ng2-query-ismi
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/query-result-row.component.ts Fri Jan 15 20:00:47 2016 +0100 @@ -0,0 +1,17 @@ +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; + +}