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:
@ -31,8 +31,8 @@ import { ReceiptDialogComponent } from './receipt-dialog.component';
|
||||
styleUrls: ['./receipt.component.css'],
|
||||
})
|
||||
export class ReceiptComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
@ViewChild('accountElement', { static: true }) accountElement: ElementRef;
|
||||
@ViewChild('dateElement', { static: true }) dateElement: ElementRef;
|
||||
@ViewChild('accountElement', { static: true }) accountElement?: ElementRef;
|
||||
@ViewChild('dateElement', { static: true }) dateElement?: ElementRef;
|
||||
public journalObservable = new BehaviorSubject<Journal[]>([]);
|
||||
dataSource: ReceiptDataSource;
|
||||
form: FormGroup;
|
||||
|
||||
Reference in New Issue
Block a user