Mercurial > hg > ng2-query-ismi
diff app/query-result-table.component.ts @ 45:dc4f0541f04d ng2-rc1
update to angular2-rc1. mostly working ;-(
author | casties |
---|---|
date | Tue, 14 Jun 2016 20:00:39 +0200 |
parents | 99fb5a953a40 |
children |
line wrap: on
line diff
--- a/app/query-result-table.component.ts Tue Jun 14 19:58:53 2016 +0200 +++ b/app/query-result-table.component.ts Tue Jun 14 20:00:39 2016 +0200 @@ -1,4 +1,4 @@ -import {Component, OnInit} from 'angular2/core'; +import {Component, OnInit} from '@angular/core'; import {NG_TABLE_DIRECTIVES} from 'ng2-table/ng2-table'; import {PAGINATION_DIRECTIVES} from 'ng2-bootstrap/ng2-bootstrap'; @@ -27,7 +27,7 @@ <div> <form (ngSubmit)="onSelectCols($event)"> Columns: - <span *ngFor="#col of allColumns"> + <span *ngFor=" let col of allColumns"> <input type="checkbox" value="{{col.name}}" [(ngModel)]="col.show">{{col.name}} </span> <button type="submit">change columns</button> @@ -45,11 +45,11 @@ (pageChanged)="onChangeTable(config, $event)" (numPages)="numPages = $event"> </pagination> - <ngTable + <ng-table [config]="config.sorting" (tableChanged)="onChangeTable($event)" [rows]="rows" [columns]="columns"> - </ngTable> + </ng-table> </div> </div> `,