Failed to instantiate module ngCookies

angularjs, dependency-injection

Solution

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

Problem

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"

Original source