use $http rather than $resource
mg-bind to the rescue