Début du travail sur la page de résumé

This commit is contained in:
Sébastien André
2019-10-23 18:31:52 +02:00
parent 75bea5189e
commit 7af8236561
5 changed files with 93 additions and 7 deletions

View File

@@ -14,7 +14,6 @@ import { ServiceComm } from '../../services/serviceComm';
export class ListOfDzsComponent implements OnInit {
public listOfDropZones: Array<DropZoneResp> = new Array<DropZoneResp>();
public displayedColumns: Array<string> = ['id', 'name', 'latitude', 'longitude', 'address', 'email', 'type'];
public dataSourceTable;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
@@ -31,7 +30,6 @@ export class ListOfDzsComponent implements OnInit {
getListOfDropZones() {
this.serviceApi.getListOfDropZones()
.subscribe(data => {
this.listOfDropZones = data;
this.dataSourceTable = new MatTableDataSource<DropZoneResp>(data);
this.dataSourceTable.paginator = this.paginator;
});