Let's consider the code snippet below:
var absenceType = {name: 'hello'};
this.newAbsenceType = angular.copy(absenceType);
After making changes to this.newAbsenceType
, you want to apply these changes to the original object.
I have explored using the extend method:
angular.extend( absenceType, this.newAbsenceType);
Unfortunately, this approach did not yield the desired result.
What could be the issue here?