I have following situation trying to accomplish
Using $resource I am calling
App.factory("AppRepository", ['$resource', function ($resource) {
return
checkPerson: $resource('/api/accountAdd/:netName', { name: '@netName' }, { get: { method: 'GET' } })
};
}]);
Than from my cotroller I am calling
var netName="Tom"
AppRepository.checkPerson.get(netName, function (data) {
alert("success");
})
This doesnt work, because I am passing string for netName. Please let me know how can I pass string value to the factory. I have worked previously with id and it works fine but not sure how to do with string value. Thanks