Failed to instantiate ngCookies module

For everyone who sees the same error message:

I use bower to set angular-cookies. I used first

bower install angular-cookie

I injected ngCookie into my module, but ran the error message "Could not create ngCookies module"

+4
source share
1 answer

Use angular-cookiesinstead angular-cookie. Pay attention to the 's'.

angular-cookie(without "s") is a package, but not the right one. ng-cookiedepends on angular-cookies(in its plural form).

bower install angular-cookies
+7
source

All Articles