Closed sdhull closed 9 years ago
:+1:
This was a surprise for me, since $resource
very much supports saving a new resource without an id
Ah yes, thanks! This is awesome.
You could also argue that $cachedResource
should support saving new records without bound parameters set, but that's significantly more effort. Probably worth doing. In the meantime, this will hopefully help others avoid the issue.
Create 2 records while offline while assuming the server will provide record ids and watch your 1st record disappear. This commit updates the README to stress the importance of setting your bound parameters.
I can re-word if you like, but this strikes me as important. It's a helluva "gotcha".