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'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'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...
I use the following factory to fetch data from API and store it to local variable called apiData.  app.factory('MyFactory', function($resource, $q) {      var apiData = [];     var service = {};      var resource = $resource('http://examp...
Can't get array by $resource. Can you help me? When I use $http all is well  I have error in console:  TypeError: undefined is not a function at http://127.0.0.1:9000/bower_components/angular-resource/angular-resource.js:597:29 at forEach (http:/...
I'm trying to get the results of an API call and save it to $scope.segments, so that later I can sort the array using $scope.segments.sort()  However, since $scope.segments = SegmentsService.getSegments(jobId); does an async call, $scope.segments...
I'm currently learning AngularJS and I'm having trouble translating a piece of code from an example to my own code.   In the following example from Urish, I understand that the variable promise must contain the functions and queries necessary...
I have an app that will make 2 $http queries to an external API and get 2 different JSON responses. These responses will populate a ng-repeat, headers, etc.  My problem is that I want to include a 3rd query, dependent on the first two.   Like so:   I...
I am getting the infamous unknown provider error, and looked into every potential answer up here but I think that I am missing something:  app.js  var myApp = angular.module('myApp', [     'ngResource',     'myAppControllers',...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.