I am using Restangular to make backend calls and everything works fine as long as URL gives me data like below:  If I hit http://mysite/responses/ the responses look like   [     {"fname":"some guy",      "lname":"some nam...
I'm using rectangular and have something like this:  stuffResource = parentResource           .one(resources.category, $scope.stuff.category)           .one(resources.stuff, $scope.stuff.id)           .put($scope.stuff);   Now, when the request i...
i've been trying to work with Restangular, but there are some issues i'm running into.  i'm not sure if its the implementation of Restangular, or my lack of understanding, but i can't seem to delete anything from a returned getList on...
I'm getting this error: Uncaught ReferenceError: _ is not defined from restangular when trying to use Restangular.  HTML  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js"></script> <script...
I'm coming from Backbone so perhaps my perspective is prejudiced by that but I'm having trouble seeing the best way to model data in Angular. The 2-way data-bind is pretty awesome but past that when I want to have persistent collection and mo...
I setup API base url in Main.js with query param "advertiserId". I would like to remove the query param advertiserId in Demo.js. Note I don't want to use $location search params (since these are search params from current window URL not t...
In Restangular if I declare a service, and do a PUT/PATCH/POST operation it uses the id of the item by default as a primary key. But what if we want to use a custom key? Like a slug or a number ?  // GET to /users Users.getList().then(function(users)...
I need to retrieve a value from an async service to add as a parameter to every rest call. The casService.getProxyTicket() is an $http call...  I have the following code :-   myFactories.factory('myFactory', [     'Restangular'     ,...
When adding Restangular to a project it throws sn [Error: $injector:modulerr] error. I've ensured this error isn't being thrown by one of my own modules. I've followed the docs on setting it up and I'm pulling from their CDN. If Resta...
I'm trying to do such query url:  Restangular.one('company').one('manager').one(managerId).get(params)   which should be for example:  /company/manager/12/?param1=value1&param2=value2   but something went wrong, and i get:  Er...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.