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,7 +16,7 @@ import { EmployeeService } from '../employee.service';
|
||||
styleUrls: ['./employee-detail.component.css'],
|
||||
})
|
||||
export class EmployeeDetailComponent implements OnInit, AfterViewInit {
|
||||
@ViewChild('nameElement', { static: true }) nameElement: ElementRef;
|
||||
@ViewChild('nameElement', { static: true }) nameElement?: ElementRef;
|
||||
form: FormGroup;
|
||||
costCentres: CostCentre[];
|
||||
item: Employee;
|
||||
|
||||
Reference in New Issue
Block a user