Normally to shallow copy objects I would use angular.extend()
angular.extend()
Here\'s an example of that:
var object1 = { \"key\": \"abc123def456\",
If you're using < 1.4
You can use lodash's built in _.merge() that does the same thing as angular > 1.4's version
lodash
Saved me from writing new functions since lodash is pretty popular with angular folks already