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 like all of the functions of Restangular for AngularJS, except that I can't find (and it may not support) a way of just passing a full URL to it. I realize the benefit of the .one('something','someparam') but my issue is that I&...
My POST and PUT return the current state of entity as seen on the server. How can I tell Restangular to update its model object after the server call?  Just in case - why? Because during save/update the server may have calculated some fields. Because...
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'm trying to get my head around promises in JavaScript (in particular AngularJS).  I have a function in a service, let's call it fooService, that checks if we've loaded some data. If it has, I just want it to return, and if we haven'...
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)...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.