restangular icon indicating copy to clipboard operation
restangular copied to clipboard

Multiple remove on Restangular

Open endriyas opened this issue 6 years ago • 0 comments

i have model called taskToStaff contains ID, taskID, StaffID

I need to delete documents from taskToStaff model where tskID is equal to the ID that i given.

curruntlly i test this but does not work.

this.TaskToStaffsDataSource = Restangular.service("taskToStaffs"); this.TaskToStaffsDataSource.one(taskID).removeAll().then(() =>{});

endriyas avatar Aug 23 '18 16:08 endriyas