Mercurial > hg > ng2-query-ismi
comparison app/query-result-row.component.ts @ 45:dc4f0541f04d ng2-rc1
update to angular2-rc1. mostly working ;-(
author | casties |
---|---|
date | Tue, 14 Jun 2016 20:00:39 +0200 |
parents | 930fe7460f6b |
children |
comparison
equal
deleted
inserted
replaced
44:3779464b830e | 45:dc4f0541f04d |
---|---|
1 import {Component} from 'angular2/core'; | 1 import {Component} from '@angular/core'; |
2 | 2 |
3 @Component({ | 3 @Component({ |
4 selector: 'tr.resultRow', | 4 selector: 'tr.resultRow', |
5 template: ` | 5 template: ` |
6 <td style="vertical-align: top;" | 6 <td style="vertical-align: top;" |
7 *ngIf="rowType=='node'" *ngFor="#col of columns"> | 7 *ngIf="rowType=='node'" *ngFor="let col of columns"> |
8 <a *ngIf="col && col.name=='link'" href="{{rowData[col.name]}}" target="_blank">Link</a> | 8 <a *ngIf="col && col.name=='link'" href="{{rowData[col.name]}}" target="_blank">Link</a> |
9 <span *ngIf="col && col.name!='link'">{{rowData[col.name]}}</span> | 9 <span *ngIf="col && col.name!='link'">{{rowData[col.name]}}</span> |
10 </td> | 10 </td> |
11 | 11 |
12 <td style="vertical-align: top;" | 12 <td style="vertical-align: top;" |