It seems that when I $save or use a custom $update (put or post) method on my resource that it expects the newly posted document to be returned. I don't want to return anything from my save/post ops but an ok/200/error type of statement but doing...
I am doing AppEngine endpoints for a RESTFul backend in AppEngine. I use AngujarJS on the client side, managing server data with ngResource.  My issue: I am not able to return a pure array from AppEngine Endpoint. I tried this:  @ApiMethod(         n...
Folks,   I am using AngularJS and angular-resource to perform a pretty simple REST API call. Here is my JavaScript code for a page that lists (and creates) messages:  (function() { 'use strict'; var messagesApp = angular.module('messagesA...
So I have an external API which I'm trying to access and extract the data in it using JSONP and $resource service. I want to have a button from ngCsv which makes the request then when the data request completed exports the array to a csv file. bu...
I am using AngularJS and NGResource and I can't figure out why when I use query, I keep getting an empty array back.  In my controller, I am doing  Task = $resource('/tasks');  var tasks = Task.query(function () {}); console.log(tasks); $...
I am having issues trying to access a service on a controller. The issue happen when the Ordenes services is called. How I can call a service with two parameter using values from the scope from a controller using ui-router?  I have the same code work...
Hi I have this code for the purpose of checking if there are users in the database, if it finds shows a list of users on a view, otherwise shows a view with form of user creation, but didn't work the check expression what I'm doing wrong  use...
I know of a similar question to this one: Pdf.js: rendering a pdf file using a base64 file source instead of url. That question was awesomely answered by Codetoffel but my question is different in that my PDF is retrieved via a RESTful call to my Web...
I am trying to get data assigned to a $scope variable. Inside my $promise.then() function it is displaying correctly but outside the function it shows as undefined. The following is my controller code:  angular.module('testSiteApp').controlle...
I am returning a array of objects from the server:  [{id: 1, name: "name"},{id: 2, name: "name2"}]   Now I use angular-resource $query to fetch the data as it expects an array. When the data is received I get this error:  TypeError: v...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.