I'm using AngularJS to code an app's front end, which consumes and store data from Backendless.
So far so good, the thing is that when I try to store changes I get errors because $$hashKey property added by AngularJS.
To make a long story short, my problem is that if I get an object from Backendless, I make changes on it with AngularJS and then I try to save the modified object, Backendless API seems to expect an object with same attributes, and since AngularJS adds stuff such as $$hashKey, I get the errors.
So, my question is, how do I get rid of $$hashKey ?,
I've read similar questions here but:
- I'm not dealing with JSON objects, so unless I can convert to json to clean attributes and then 'build' the object again, this approach is not very useful.
- They're not considering nested objects, i.e. removing attributes from attribute objects
- The answers don't consider making a deep copy before making any changes and then update such a copy before saving, which is an alternative I'm considering but I'm not quite sure if it's the best one.
Any hint or comment is very appreciated.
Thank you in advance.