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:
@ -33,9 +33,9 @@ import { PurchaseDialogComponent } from './purchase-dialog.component';
|
||||
styleUrls: ['./purchase.component.css'],
|
||||
})
|
||||
export class PurchaseComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
@ViewChild('accountElement', { static: true }) accountElement: ElementRef;
|
||||
@ViewChild('productElement', { static: true }) productElement: ElementRef;
|
||||
@ViewChild('dateElement', { static: true }) dateElement: ElementRef;
|
||||
@ViewChild('accountElement', { static: true }) accountElement?: ElementRef;
|
||||
@ViewChild('productElement', { static: true }) productElement?: ElementRef;
|
||||
@ViewChild('dateElement', { static: true }) dateElement?: ElementRef;
|
||||
public inventoryObservable = new BehaviorSubject<Inventory[]>([]);
|
||||
dataSource: PurchaseDataSource;
|
||||
form: FormGroup;
|
||||
|
||||
Reference in New Issue
Block a user