This is from the documentation.
var User = $resource('/user/:userId', {userId:'@id'});
var user = User.get({userId:123}, function() {
user.abc = true;
user.$save();
});
What does @id mean? If we are supposed to supply userId as an argument as specified by /:userId, why specifying this rule again in {userId: '@id'}, assuming that's what it means.