working resolve with restangular