Updated to angular 11

Now compiling with strict mode in typescript
Need to error checking now
This commit is contained in:
2020-11-22 10:13:37 +05:30
parent cabd6f2ea1
commit 6567f560ab
187 changed files with 1709 additions and 1184 deletions
@@ -9,12 +9,13 @@ import { Table } from '../../core/table';
styleUrls: ['./running-tables.component.css'],
})
export class RunningTablesComponent implements OnInit {
list: Table[];
list: Table[] = [];
constructor(private router: Router, private route: ActivatedRoute) {}
ngOnInit() {
this.route.data.subscribe((data: { list: Table[] }) => {
this.route.data.subscribe((value) => {
const data = value as { list: Table[] };
this.list = data.list;
});
}
@@ -23,7 +24,7 @@ export class RunningTablesComponent implements OnInit {
const qp = { table: table.id };
if (table.voucherId) {
// eslint-disable-next-line @typescript-eslint/dot-notation
qp['voucher'] = table.voucherId;
Object.assign(qp, { voucher: table.voucherId });
}
const navigationExtras: NavigationExtras = {
queryParams: qp,