I get this error when I try to include $ cookie in my controller.
Can anyone explain to me what I did wrong?
I have angular-cookie.js in index.html I called the ngcookies module in config.js In my controller I have
angular
.module('homer')
.controller('authCtrl', authCtrl)
function authCtrl($scope, $rootScope, $location, $cookies, $http, sweetAlert, Data) {
debugger;
If I delete $ cookie here, there is no error.
source
share