HI guys. Have trouble with $resource:
Users: $resource(buildUrl('users/:id/:action'),
> { id: '@id' },
> {
> disable: { method: 'POST', params: { action: 'disable' }
> },
> enable: { method: 'POST', params: { action: 'enable' } },
> ...
> }
> )
And thats how i call it
>
> apiService.Users.enable({ id: id }).$promise;
I need to pass id-param to url (http://.../users/PASS-ID-HERE/disable) and
Don't put it into request payload as data ( { id:
"someid-guid-someguid-somegiud"
}
How can i do this? Thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.