Top "Angularjs-service" questions

AngularJS services are singletons that carry out specific tasks common to web apps.

How can I define an AngularJS service using a TypeScript class that doesn't pollute the global scope?

I am using AngularJS and TypeScript. I want to implement an AngularJS service using a Typescript class, like this: class …

angularjs global-variables typescript angularjs-service
Error: [$injector:unpr] Unknown provider: in AngularJS Service Test

I am having a lot of trouble getting dependencies provided properly for an AngularJS service. I see a number of …

angularjs jasmine angularjs-service
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 [$injector:unpr] Unknown provider

I am trying to inject a service into controller, and i am getting following error: Error: [$injector:unpr] Unknown provider: …

angularjs angularjs-service
Passing argument(s) to a service in AngularJs

I am trying to configure my first tidbits of the AngularJs for a trivial stuff, but unfortunately unsuccessful at it …

angularjs angularjs-service
Force AngularJS service to return data before loading controller

I have a service in Angular which uses my API to get user information and provides it to my controllers. …

javascript angularjs angularjs-service
Creating common controller functions

How do I create some sort of utils bundle that would be accessible from all my controllers? I have this …

javascript angularjs web angularjs-service
AngularJS factory http returns empty

I'm trying AngularJS for the first time. I'm getting JSON data from a http-get request using a factory, but the …

http angularjs factory angularjs-service
How to make controller wait for promise to resolve from angular service

I have a service that is making an AJAX request to the backend Service: function GetCompaniesService(options) { this.url = '/…

javascript ajax angularjs promise angularjs-service
How to use angularJS interceptor to only intercept specific http requests?

I know how to intercept ALL requests, but I only want to intercept requests from my resources. Does anyone know …

angularjs angularjs-service