Here is the code snippet I'm working with:
angular.module('MyModule').controller('MyController', ['$scope', '$stateParams','$location', '$http','LocalStorageModule',
function($scope, $stateParams, $location, $http, localStorageService) {
localStorageService.add('test', 'val');
]);
Can somebody help me figure out what's going wrong?
I encountered an exception saying 'unknown provider localstorageservice' while using the Firefox browser.
The Firebug Console shows the following error message:
Error: [$injector:unpr] Unknown provider: LocalStorageModuleProvider <- LocalStorageModule
http://errors.angularjs.org/1.2.20/$injector/unpr?p0=LocalStorageModuleProvider%20%3C- %20LocalStorageModule
at http://127.1.0.0/lib/angular/angular.js:78:12