Skip to content

Working with ngResource services? #1

@rvillars

Description

@rvillars

Your projects seems promising but I have some difficulties with the documentation. You write:

Now you are able to instantiate the SpringDataRestAdapter object and process a given response:

var processedResponse = new SpringDataRestAdapter(response);

What is the 'response'? Do I have to get it "manually" with $http? What about ngResource that is used by angular-spring-data-rest itself?

Normally with ngResource you can create and use a resource service like this:

myApp.factory('Category', function ($resource) {
    return $resource('category/:categoryId', {categoryId: '@id'});
}

$scope.categories = Category.query(); // in the controller

How can I use angular-spring-data-rest this way to also make use of all ngResource convenience functions like 'get' or 'save'?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions