I'm getting an Expression changed after it was checked
error in the browser console.
The issue comes from passing an object into a component and then trying to update the object in the component and seeing the changes in the parent. This is what I've tried:
<employee-form [employee]="employee" (update)="updateEmployee($event)"></employee-form>
and
<employee-form [(employee)]="employee"></employee-form>
and in both cases I get the same error.
I know that from this in the Angular docs that an object should be the same reference after change detection. And that's the issue here is that it isn't. So is there a way for me to pass that employee object into the employee form component, have it be changed and see those changes in the parent component?