I have meet a problem that to use "restangularizeElement".
Restangular.restangularizeElement("", user, "users")
user.put()
restangularizeElement is fine but when I update the user, browser show a error: Converting circular structure to JSON. The tricky thing is once I refresh the browser, everything goes well, update function works well.
I don't think it is a good idea to let user refresh their browser before using the function.
Is there any approach to solve this issue?