All datasources done. Now to wire them up in the components.
Plus ElementRefs are now optional as they cannot be initialized
This commit is contained in:
@@ -16,8 +16,8 @@ import { ClosingStockDataSource } from './closing-stock-datasource';
|
||||
styleUrls: ['./closing-stock.component.css'],
|
||||
})
|
||||
export class ClosingStockComponent implements OnInit {
|
||||
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
|
||||
@ViewChild(MatSort, { static: true }) sort: MatSort;
|
||||
@ViewChild(MatPaginator, { static: true }) paginator?: MatPaginator;
|
||||
@ViewChild(MatSort, { static: true }) sort?: MatSort;
|
||||
dataSource: ClosingStockDataSource;
|
||||
form: FormGroup;
|
||||
info: ClosingStock;
|
||||
|
||||
Reference in New Issue
Block a user