Top "Angular-resource" questions

An angularjs factory which creates a resource object that lets you interact with RESTful server-side data sources.

Testing $resource services in AngularJS

I am trying to begin writing unit tests for my angular application and hit a stopping block pretty quick as …

angularjs angular-resource
AngularJS Automatically Syncing Data between Server and Client

There's something in the AngularJS docs that I can't seem to find or maybe I'm just missing. I'm creating a …

angularjs angular-resource
Angular Resource Encoding URL

I have a resource defined as follows: app.factory("DatumItem", function($resource) { return $resource('/data/:id', {id: '@id'}); }); …

angularjs urlencode angular-resource
AngularJS $promise then() data undefined

I am trying to get data assigned to a $scope variable. Inside my $promise.then() function it is displaying correctly …

javascript angularjs angularjs-scope angular-resource angular-promise
how to build angular $resource POST request to server?

I can't catch request on ASP.NET MVC project on server side controller from AngularJS: var appDirective = angular.module('app.…

javascript asp.net asp.net-mvc angularjs angular-resource
How to configure Angular $resource (ngResource) to pull data from another domain using CORS

I'd like to be able to setup resources using $resource using CORS to request my data. I've got CORS working …

angularjs jsonp cors angular-resource angularjs-resource
How do I remove the default headers just for specific XHR requests in AngularJS?

99% of my ajax calls need a specific "X-API-TOKEN" to authenticate and communicate with my Rails REST API. But I'm also …

angularjs angular-resource
Requesting Example for angular.js $http (or $resource) POST and transformRequest as a service

Using angular 1.1.5 and needing to pass urlencoded data to the backend. I've gotten this to work with solution from here: …

post angularjs-service angular-resource angular-http
angular http: how to call images with custom headers?

In the html view, images are displayed like this: <img ng-src="{{element.image.url}}"> element.image.url points …

javascript angularjs authentication angular-resource
AngularJS: transform response in $resource using a custom service

I am trying to decorate the returned data from a angular $resource with data from a custom service. My code …

javascript angularjs angular-resource angularjs-resource