a step into the right direction

using $http instead of ngResource