Top "Angularjs-service" questions

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

Testing a simple AngularJS service using Jasmine

I have a simple service that I am trying to unit test. No matter what I try, either the searchService …

angularjs jasmine karma-runner angularjs-service
What is the difference between `value` attribute and `ng-value` attributes in angularjs

What is the difference between value and ng-value attributes in angularjs templates? If I use ng-if on the field using …

javascript angularjs angularjs-scope angularjs-ng-repeat angularjs-service
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
Stop $timeout when starting new controller

I'm polling for my data every 2 seconds to keep them updated on the page. My problem is when I visit …

angularjs angularjs-service
Delay an angular.js $http service

I have some angular factories for making ajax calls towards legacy ASP.NET .asmx web services like so: module.factory(…

angularjs angularjs-service
Call angularjs service from simple js code

I have the following angularjs service: angular.module('app.main').factory('MyService', ["$http", function ($http) { return new function () { this.GetName = …

javascript angularjs angularjs-service
Use service into View AngularJS

I have issue with angularJS Service. I have simple service: angular.module('mainApp.services', []).factory('AuthService', function ($http) { //var currentUser = …

angularjs angularjs-service
AngularJS service retry when promise is rejected

I'm getting data from an async service inside my controller like this: myApp.controller('myController', ['$scope', 'AsyncService', function($scope, …

javascript angularjs angularjs-service
Uploading a file with AngularJS and bluimp on success callback of another form

I have followed the following tutorial in order to integrate the notorious bluimp jQuery file uploader in my AngularJS project. …

angularjs angularjs-directive angularjs-service ajax-upload
Call controller function from service in angularjs

I am using socket.io to enable chat in my app and i am using a service SocketService to perform …

angularjs events angularjs-service angularjs-controller angular-broadcast