is it possible to get resource param from transformResponse function?
demoApp.factory('Social', function($resource) {
return $resource('api/social/:platform', {
platform: '@platform'
}, {
getAdmin: {
method: 'GET',
isArray: false,
transformResponse: function(resp) {
// so, can i get `platform` in line 3 from here?
return resp[platform];
}
}
});
});
as shown in the code above, can i get the parameter platform from the transformResponse function?