Prevent ngResource from requiring a returned item on $save

后端 未结 2 946
栀梦
栀梦 2021-01-28 12:52

It seems that when I $save or use a custom $update (put or post) method on my resource that it expects the newly posted document to be returned. I don\'t want to return anything

2条回答
  •  迷失自我
    2021-01-28 13:12

    If your server returns a 204 (no-content), it won't replace the resource once the save is complete.

提交回复
热议问题