Top "Angularjs-factory" questions

Factory can return anything which can be a class (constructor function), instance of class, string, number or boolean.

Can I have multiple functions in my AngularJS Factory?

I'm following the Tutorial from the official AngularJS docs and I want to know if I can add another function …

angularjs angularjs-factory
How to set a timeout to abort an $http.get() inside a factory or service?

I have the following method getData(url) in a my factory which uses $http.get(url) to get data from …

angularjs ionic-framework ionic angularjs-service angularjs-factory
Using a factory inside another factory AngularJS

I have a module... angular.module('myModule', []); And then a factory angular.module('myModule') .factory('factory1', [ function() { //some var's …

javascript angularjs angularjs-factory angularjs-module
use $http.get in a service/factory to return a collection

I try to use a http.get promise in an angularjs service, do some manipulation on the obtained collection and …

javascript angularjs angular-promise angularjs-factory angularjs-http
AngularJS $resource & cache factory

I have implemented angular $resource with custom functions and parameters as follows:- .factory('CandidateService', ['$resource', function ($resource) { return $…

javascript angularjs angularjs-factory
post [object%20Object] 404 not found angularjs

hi i am trying to insert a row in mi table but always obtain this problem: POST URL/api/presentaciones/[…

angularjs angularjs-factory
AngularJS : Why is my factory always undefined in my controller?

My factory is undefined in my controller and I cannot figure out why. I have created a simple example to …

angularjs factory angularjs-factory
watch factory variable with Angular

My single page application has 2 controllers : the first is for my main menu and the second is for the view. …

javascript angularjs angularjs-scope angularjs-factory angularjs-watch
Initialize Angular Service (factory) when application start

In my Angular application I adding tracing functionality, which should work as separate plugin, so if script included into HTML …

javascript angularjs angularjs-service angularjs-factory