Top "Angularjs-service" questions

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

How do I configure different environments in Angular.js?

How do you manage configuration variables/constants for different environments? This could be an example: My rest API is reachable …

javascript angularjs angularjs-service
Injecting a mock into an AngularJS service

I have an AngularJS service written and I would like to unit test it. angular.module('myServiceProvider', ['fooServiceProvider', 'barServiceProvider']). factory(…

javascript angularjs mocking jasmine angularjs-service
AngularJS Service Passing Data Between Controllers

When using an AngularJS service to try and pass data between two controllers, my second controller always receives undefined when …

angularjs angularjs-service
AngularJS: open a new browser window, yet still retain scope and controller, and services

I'm writing an angularJS app. In this particular controller, I open a new browser window through the $window.open service. …

javascript angularjs angularjs-scope angularjs-service angularjs-controller
How do I prevent angular-ui modal from closing?

I am using Angular UI $modal in my project http://angular-ui.github.io/bootstrap/#/modal I don't want user to …

angularjs angular-ui angularjs-service
Injecting a service into another service in angularJS

Is it possible to inject one service into another service in angularJS?

angularjs angularjs-service
Angularjs Uncaught Error: [$injector:modulerr] when migrating to V1.3

I am learning Angular.js and I am not able to figure out whats wrong with this simple code. It …

javascript angularjs angularjs-scope angularjs-service angularjs-controller
Include 3rd-party Javascript Libraries into an AngularJS app

I'm trying to include a javascript libraries (actually, a handfull) into my AngularJS app. So far, I am building a …

angularjs angularjs-service
How to close Angular UI Modal from anywhere

I am using the Angular UI bootstrap modal dialog and create it within a service: myApp.factory('ModalService', ['$modal', …

angularjs angular-ui angular-ui-bootstrap angularjs-service
Cordova + Angularjs + Device Ready

I am developing a mobile application using Cordova and AngularJS. How do I restrict bootstrapping of AngluarJS before Cordova device …

angularjs cordova angularjs-service