getting this error ,
"ViewDestroyedError: Attempt to use a destroyed view: detectChanges"
when i am trying to route from my list component to employee detail component, I called function and pass id , it is routed perfectly but in console giving me this error
Both the Component are in same module, employee module,
EmployeeModule(EmployeeListComponent => EmployeeProfileComponent)
code
editEmployee(emp){
console.log('employee:=>',emp);
this.route.navigate(['employee/profile'],{queryParams:{empid:emp.id}})
}