AngularJS unknown provider $$ cookieReaderProvider


I am trying to use the ngCookies of AngularJS, but when I run my project I get the following error:

[$injector:unpr] Unknown provider: $$cookieReaderProvider <- $$cookieReader

This is an example of my code

 var ole_no_ldap = angular.module('ole_no_ldap', ['ngRoute', 'localization', 'SharedServices','pascalprecht.translate','ngCookies']);

angular.module('ole_no_ldap').controller('CreatePasswordController', function($scope, $http, $translate,$cookies) {
         $cookies.put('language', 'spanish');
asked by Edgar Conrado 23.02.2016 в 00:31

1 answer


I ask you about the version of angular that you use because I have noticed that you are asking about the same topic

AngularJS unknown provider cookieReader

AngularJS: Unknown provider: $$ cookieReaderProvider < - $$ cookieReader < - $ cookies

plan to update the angle version, to solve it

answered by 23.02.2016 в 03:02