My main module definition:
angular.module(\'app\', [\'app.animators\',
\'app.places\',
\'app.orders\',
This is because when you initialize module app.services
, you forget to inject ngCookies
. You only include ngCookies
in app
, which is a different module.
A quick fix here is changing your module definition to
angular.module('app.services', ['ngCookies']).factory('authService', ...
angular-cookie.js version must have the same version that angular.js
"//code.angularjs.org/X.Y.Z/angular-cookies.js" where X.Y.Z is the AngularJS version you are running.
If you use angularJs version 1.3 use angular-cookies 1.3.17!
In my project i have the same problem! So i did a downgrade!