mgonto / restangular

AngularJS service to handle Rest API Restful Resources properly and easily
MIT License
7.87k stars 840 forks source link

Multiple remove on Restangular #1490

Open endriyas opened 6 years ago

endriyas commented 6 years ago

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(() =>{});