In your code example, the definition of your resource is as follows:
var UtilService = $resource('server2/users/:userId', { }, { 'get' : { method: 'GET',headers: {'Content-Type':'application/json'}, params: { userId:'anil' } , isArray : true } } )
This url looks relative. If you are trying to target a remote server, you will need a resolvable URI. If something that distorted the anonymity of your example, I think your problem.
S McCrohan May 09 '13 at 2:41 p.m. 2013-05-09 14:41
source share