dynamtic sorting revert updates
This commit is contained in:
parent
0ff9232f3b
commit
c10991a468
@ -38,10 +38,7 @@ export class ContactsComponent {
|
|||||||
this.dataSource.paginator = value;
|
this.dataSource.paginator = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ViewChild(MatSort, { static: false })
|
@ViewChild(MatSort) sort!: MatSort;
|
||||||
set sort(value: MatSort) {
|
|
||||||
this.dataSource.sort = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
displayedColumns: string[] = ['firstName', 'lastName', 'title', 'phone', 'mobile', 'email', 'actions'];
|
displayedColumns: string[] = ['firstName', 'lastName', 'title', 'phone', 'mobile', 'email', 'actions'];
|
||||||
dataSource = new MatTableDataSource<any>();
|
dataSource = new MatTableDataSource<any>();
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: false,
|
production: false,
|
||||||
apiUrl: 'https://dev.alphaomegainfosys.com/test-api',
|
apiUrl: 'https://dev.alphaomegainfosys.com/test-api-2',
|
||||||
apiDb: '1',
|
apiDb: '2',
|
||||||
appType: 'client',
|
appType: 'client',
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user