无法使用 Bower 将 ngCookie 添加到 Angular 模块并出错
Cannot add ngCookie to Angular Module with error using Bower
使用 Bower 安装 Angular-Cookie
并将 js 文件添加到我的 HTML 后,我无法添加 ngCookies 来使用它显示以下错误:
Uncaught Error: [$injector:modulerr] Failed to instantiate module
Dashboard due to: Error: [$injector:modulerr] Failed to instantiate
module ngCookies due to: Error: [$injector:nomod] Module 'ngCookies'
is not available! You either misspelled the module name or forgot to
load it. If registering a module ensure that you specify the
dependencies as the second argument.
来自 Angular 的官方模块称为 Angular-Cookies
可以使用以下方式安装:
bower install -s angular-cookies
您可以通过运行
删除另一个模块
bower uninstall angular-cookie
使用 Bower 安装 Angular-Cookie
并将 js 文件添加到我的 HTML 后,我无法添加 ngCookies 来使用它显示以下错误:
Uncaught Error: [$injector:modulerr] Failed to instantiate module Dashboard due to: Error: [$injector:modulerr] Failed to instantiate module ngCookies due to: Error: [$injector:nomod] Module 'ngCookies' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
来自 Angular 的官方模块称为 Angular-Cookies
可以使用以下方式安装:
bower install -s angular-cookies
您可以通过运行
删除另一个模块bower uninstall angular-cookie