I have this message Error in angular:
src/app/components/employee/employee.component.html:67:92 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
67 <button class="btn btn-danger btn-sm mr-2 (click)="deleteEmployee(employee._id)">
src/app/components/employee/employee.component.ts:8:16
8 templateUrl: './employee.component.html',
Error occurs in the template of component EmployeeComponent
Employee
Please a need know why this happened