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:
@@ -24,7 +24,7 @@ import { EmployeeAttendanceService } from './employee-attendance.service';
|
||||
styleUrls: ['./employee-attendance.component.css'],
|
||||
})
|
||||
export class EmployeeAttendanceComponent implements OnInit, AfterViewInit {
|
||||
@ViewChild('employeeElement', { static: true }) employeeElement: ElementRef;
|
||||
@ViewChild('employeeElement', { static: true }) employeeElement?: ElementRef;
|
||||
public employeeAttendanceObservable = new BehaviorSubject<EmployeeAttendanceItem[]>([]);
|
||||
dataSource: EmployeeAttendanceDataSource;
|
||||
form: FormGroup;
|
||||
|
||||
Reference in New Issue
Block a user