277 questions
0
votes
0
answers
30
views
AngularJS trouble with $resource call
I'm new to front end development, apologies if this is not the most sophisticated question. I want to do something fairly simple: display a list of items from the JSON returned by an http call to a ...
0
votes
1
answer
66
views
how to emit an event in a callback using $resource in angularJS
I have a function like this one:
module.exports.getMyItems = ['$rootScope', '$resource', function getMyItems($rootScope, $resource) {
return $resource('/myEndpoint/:id',
{id : '@id'},
{
...
1
vote
2
answers
321
views
AngularJS resource: Send query parameter only if non-empty
I have a Angularjs resource and in one of the methods, I want to send a query parameter to the backend if that query parameter is non-empty. Is it possible to achieve that without created a different ...
0
votes
1
answer
963
views
How to Post Json array of objects in AngularJS (using $resource save or via $http service) and How to consume it in Resteasy
At first step, I achieved successfully to save a single user via $resource save in angularjs passed to Resteasy service and eveything works well.
At second step, What I'm trying to do now here is, I ...
0
votes
1
answer
50
views
I'm having problems accessing a $resource variable in AngularJS
I made a request for a php getting a JSON string, when I access the string in my template using $ctrl.respostas[0].status it returns a string with a value, but when I try to use the same model in my ...
0
votes
2
answers
311
views
Method Not Allowed when calling DELETE method; possible routing issue
I have an AngularJS application that communicates with a Web Api. I've implemented the GET (one and many), DELETE, POST, and PUT methods. In my controller I have specified two attribute routes for ...
1
vote
1
answer
232
views
angular.js:14195 Error: [$resource:badmember] Dotted member path "@" is invalid
I'm using angular.resource js
There I'm trying to access get service which has query param triggered from a form search.
If user search with only "@" in input field, it goes as query param which ...
0
votes
0
answers
187
views
AngularJS resource service
I’m new to AngularJS and are trying to use resource service to get data back from a REST service. My problem is that when I’m trying to get my items from two different SharePoint list it only takes ...
0
votes
3
answers
3k
views
AngularJS: Minimal example with $resource and timeout
I'm struggling with a minimal example of a $resource timing out after a couple of seconds. Probably some stupid syntactic stuff.
Ok, here's my jsfiddle:
http://jsfiddle.net/904dykrp/1/
var app = ...
0
votes
0
answers
54
views
Use ngResource to query database in AngularJS
I'm trying to use in my app "module ngResource", but i always get this error :
Error: [$injector:modulerr] http://errors.angularjs.org/1.6.3/$injector/modulerr?p0=eliewearApp&p1=%5B%24injector%...
3
votes
3
answers
691
views
Angular Resource: Error: $resource:badcfg
I have looked at other posts here but still can't resolve my issue.
I get a Error:
$resource:badcfg Response does not match configured parameter
I believe this error is caused by it returning an ...
0
votes
1
answer
31
views
Angularjs how to loads required js files home page index.html
We have angularjs app with lot of js getting loaded during the initial page load. Which are not required as part of home page. How we can void these. Is requieedjs solve this. How and when other js ...
0
votes
1
answer
680
views
Custom method in an Angular service using $resource in Jhipster
I don't understand the syntax to write a custom method in an Angular Service using $resource in Jhipster. After a lot of research, I am doubtful whether it's even possible.
Here is the code for ...
0
votes
1
answer
1k
views
Cannot read property 'index' of undefined
I am very new to Angular and was trying to use it on my Rails Application. But I got the following error.
TypeError: Cannot read property 'index' of undefined
app.js code
angular.module('ticket', ['...
0
votes
1
answer
511
views
AngularJS ngResource $resource query() Returns Empty
I am trying to upload a file from the server but the file is not showing up. The call to the server is initiated from this segment of code:
'use strict';
angular.
module('phoneList').
component('...