2π
β
For future reference:
Angular is expecting for a successful post call that the server responds with the json representation of the resource for which we called $update or $save.
I found it here. Hidden in a comment π
card.$save();
// POST: /user/123/card/456 {id:456, number:'1234', name:'J. Smith'}
// server returns: {id:456, number:'1234', name: 'J. Smith'};
Therefore Iβm returning the json representation of the resource from the server and it works as expected.
π€Thomas Kremmel
Source:stackexchange.com