Mercurial > hg > ng2-query-ismi
annotate 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 |
rev | line source |
---|---|
7
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
1 import {Component} from 'angular2/core'; |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
2 |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
3 @Component({ |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
4 selector: 'query-result-row', |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
5 template: ` |
9 | 6 <td *ngIf="rowType=='node'">{{rowData.label}}</td> |
7 <td *ngIf="rowType=='text'">{{rowData}}</td> | |
7
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
8 `, |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
9 inputs: ['rowData', 'rowType'] |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
10 }) |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
11 |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
12 export class QueryResultRowComponent { |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
13 |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
14 public rowData: any; |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
15 public rowType: string; |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
16 |
6cd6c09032aa
object type query with results!
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
diff
changeset
|
17 } |