Angular-resource problem post or put. why?


#1

why ionic not support angular-resource post or put. . ? but query and get yes support


#2

i think that this has nothing to do with ionic.

MAybe you have some problems with app-permissions, content-security-policy.


#3

As stated by bengtler this has nothing to do with Ionic but with anglar. Angular-resource DO support POST out of the box, it is implemented by the " save() " medthod. As for PUT it is not supported out of the box (by design) but is easily implemented. You really should look at the documentation there is even a example on how to implement a custom PUT.

https://docs.angularjs.org/api/ngResource/service/$resource


#4

thanks, for advanced. . this problem is solved and working post or put with angular-resouce. this my code using header in the method POST and PUT
headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8;' }