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...
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 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...
I'm creating a app usign angular and typescript.  Everything is comming together nicely, but one issue bugs me.  I define entity/model classes that i would like to pass around in the app, the data for the classes comes from JSON from $resource ca...
I am working on an angular v1.3 app and I am using angular-poller in one my controllers to automatically send request to get new data from my backend every 2 seconds.  It works fine in Chrome, but does not work in IE11. But strangely enough, I am usi...
I've recently learned that ngResource request can be aborted either by specifying a timeout in ms or passing a deferred object.  The second solution does not seem to work for me, and I have no idea what I'm doing wrong. I've created a fid...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.