Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to instantiate module ngCookies

For all who see the same error message:

I uses bower to install angular-cookies. First I used

bower install angular-cookie

I injected ngCookie to my module, but go the error message "Failed to instantiate module ngCookies"

like image 225
Patrick Riemer Avatar asked Nov 21 '14 07:11

Patrick Riemer


1 Answers

Use angular-cookies instead of angular-cookie. Note the 's'.

angular-cookie (with no 's') is a package, but not the correct one. ng-cookie depends on angular-cookies (in its plural form).

bower install angular-cookies
like image 126
Patrick Riemer Avatar answered Sep 17 '22 18:09

Patrick Riemer