I think I'm not understanding how a POST is done in a RESTful api. When creating a new object in Restangular with this:  var user = {name: "John", id:"123"}; Restangular.one('building','5').post(user);   I expect i...
I am trying to set the header for a single post request using restangular but the request is being  sent as plain text instead of json. I have read the documentation here as well as a similar question. I have followed the prescribed methods but to no...
Using AngularJS 1.2.16, ui-router, and Restangular (for API services), I have an abstract state with a child state that uses multiple views. The child view accepts a URL parameter (via $stateParams) and a resolve to fetch the record from an API based...
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'm upgrading an AngularJS solution to Angular 4 and I need to upgrade the 'restangular' library to use ngx-restangular instead, because I have an existing AngularJS service that uses restangular, and I need to convert it to Angular 4. 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...
Is MongoDB capable of funding number of random documents without making multiple queries?  e.g. I implemented on the JS side after loading all the document in the collection, which is wasteful - hence just wanted to check if this can be done better w...
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&...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.