0
votes
1answer
134 views

How do I add a custom method to a restangular service?

I have a decoupled Restangular service which I'd like to attach a custom method to. It appears that the only methods returned on a collection by default are getList, one, and post. I would like to do ...
1
vote
0answers
38 views

Restangular update call when options change

My services.js angular.module('myApp.services', []). factory('MyApi', function (Restangular) { var options = {quran: 210, content: 217, audio: 1}; var callBack = 1; return { ...
1
vote
1answer
552 views

Restangular api calls to external getting 'No Access Allowed'

Following Restangular's documentation and includes an example of this: // GET to http://www.google.com/ You set the URL in this case Restangular.allUrl('googlers', ...
0
votes
1answer
882 views

Angularjs - Restangular call inside factory/service

I am using factory as follows: var appModule = angular.module('appModule', ['ngRoute','restangular']); appModule.config(['$routeProvider', function($routeProvider) { ...
0
votes
1answer
108 views

AngularJS: Ideas for keeping DRY when calling REST and producing easy readable code, store endpoints in a js object?

I have been hacking away and currently have quite a few controllers that are calling my backend services, currently I have entered the endpoints directly into the controllers and the URls are stored ...
0
votes
1answer
403 views

Share data between angular-js controllers with service and restangular

I'm new to angular and I'm still struggling with services, I have an application that queries the server for a survey, and shows the survey questions in a wizard, each question in the survey is in a ...