Closed aaaristo closed 10 years ago
move from "$" to "_" prefixes for hidden attributes
workaround in angular:
1) configure put and post methods to send 'application/json' header even on strings:
angular.module('myapp',[]).config(['$httpProvider',function ($httpProvider) { $httpProvider.defaults.headers.put['Content-Type']='application/json'; $httpProvider.defaults.headers.post['Content-Type']='application/json'; }])
2) use JSON.stringify on posts
$http ({ url: '/my/api/path' method: 'POST', data: JSON.stringify(myobj) })
we could use https://github.com/jsog/jsog
https://github.com/aaaristo/dyngodb/tree/underscore
this should be fixed as for dyngodb2
move from "$" to "_" prefixes for hidden attributes
workaround in angular:
1) configure put and post methods to send 'application/json' header even on strings:
2) use JSON.stringify on posts