Hi,

I have a resource defined like this:
function service($filter, $http, $log, $resource, apiParams) {

        return $resource(apiParams.BASE_API_URL + '/:id/', null,
            {
                "query" :
                {
                     method: "GET", isArray: true
                },
                "remove" : 
                {
                    method: 'DELETE',
                    params: { id: '@id'},
                },
                "delete" : 
                {
                    method: 'DELETE',
                    params: { id: '@id' },
                },
                "getItem" :
                {
                    method: 'GET',
                    params: { id: '@id' },
                },
                "save": { method: "POST" }
           });
    }

and when I call 
service.getItem({ id: itemId}).$promise.then(function (data) {
         data.$save();
     });
my chrome tab just hangs, stops responding, though on IE I managed to see 
an error with stack trace:
Error: Out of stack space
at add (http://localhost:61106/app/Scripts/jquery-2.1.4.js:8459:4)
at buildParams (http://localhost:61106/app/Scripts/jquery-2.1.4.js:8447:3)
at buildParams (http://localhost:61106/app/Scripts/jquery-2.1.4.js:8442:4)
at buildParams (http://localhost:61106/app/Scripts/jquery-2.1.4.js:8442:4)
at buildParams (http://localhost:61106/app/Scripts/jquery-2.1.4.js:8442:4)
at buildParams (http://localhost:61106/app/Scripts/jquery-2.1.4.js:8442:4)
at buildParams (http://localhost:61106/app/Scripts/jquery-2.1.4.js:8442:4)
at buildParams (http://localhost:61106/app/Scripts/jquery-2.1.4.js:8442:4)

Couldn't find any similar issues. Anyone knows what's the problem here? 
AngularJs version is 1.4.2

-- 
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.

Reply via email to