Top "Angularjs-factory" questions

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

AngularJS : Factory and Service?

EDIT Jan 2016: Since this still gets attention. Since asking this I've completed a few AngularJS projects, and for those I …

javascript angularjs angularjs-service angularjs-factory
AngularJS : When to use service instead of factory

Please bear with me here. I know there are other answers such as: AngularJS: Service vs provider vs factory However …

angularjs angularjs-service angularjs-factory
how to call service method from ng-change of select in angularjs?

I am new to angular js. I am trying to call factory service method 'getScoreData' from ng-change of select, but …

angularjs angularjs-directive angularjs-service angularjs-factory angularjs-ng-change
AngularJS : What is a factory?

I've been doing a lot of work on Angular.js and overall I find it to be an interesting and …

javascript angularjs angularjs-factory
AngularJS : returning data from service to controller

I am trying to create a service to get json and pass it to me homeCtrl I can get the …

angularjs angularjs-service angular-promise angularjs-factory angularjs-http
AngularJS - Factory - TypeError: Cannot read property 'getSpec' of undefined

I am starting with AngularJS and i am having some issues when trying to use a factory from a controller. …

angularjs angularjs-factory
AngularJS Factory Parameter

I'm trying to send a parameter to an angularjs service. Here is my service code : angular.module('skyBiometryServices', ['ngResource']) .factory(…

angularjs angularjs-factory
Angular - TypeError: XX is not a function

Maybe I'm missing some kind of property, but I'm follow this project and I'm getting this error in my controller. …

javascript angularjs angularjs-scope angularjs-service angularjs-factory
Creating Custom Objects in AngularJS

I would like to implement my own custom object/classes in AngularJS. However, I'm getting stuck on the concept of …

angularjs angularjs-service angularjs-factory