I am learning Angular.js and I am not able to figure out whats wrong with this simple code. It seems to look fine but giving me following error.  **Error**: Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.3.14/$injector/modulerr?...
I have an AngularJS service written and I would like to unit test it.  angular.module('myServiceProvider', ['fooServiceProvider', 'barServiceProvider']).     factory('myService', function ($http, fooService, barServi...
This question already has answers here:...
I'm writing an angularJS app. In this particular controller, I open a new browser window through the $window.open service. But in the new window, all the $scope variables are lost.  I tried to use window.parent but this doesn't work. In fac...
I have a service in Angular which uses my API to get user information and provides it to my controllers. It's set up like this:  angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives', '...
I am trying to get my angular application work in live mode as well as in a prototype mode just by overriding the services. As a part of this when the prototype mode is turned on in the config, i halt the bootstrap process, load mock services (js) fi...
While attempting to answer a question regarding sharing data between two separate controllers I ran into a question .    I usually use services for for this task and began to create a jsfiddle, but I could not get it to work.    After a bit of debugg...
I have the following service (it actually has more levels and elements but I trimmed it down to just a single example of what I'd like to work). It creates javascript objects within other objects dynamically based on csv files in the app.data fol...
I have defined a custom http service in angular that looks like this:  angular.module('myApp')   .factory('myhttpserv', function ($http) {    var url = "http://my.ip.address/"    var http = {       async: function (webService)...
I've got the following service:  angular.module("services") .factory("whatever", function($window) {   return {     redirect: function() {       $window.location.replace("http://www.whatever.com");     }   }; });   How to...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.