为 angular-materialize 添加依赖项时出错

Error while adding dependency for angular-materialize

我想对 https://github.com/krescruz/angular-materialize 中的 angular 项目使用实体化,但出现错误

angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module F1FeederApp due to: Error: [$injector:modulerr] Failed to instantiate module ui.materialize due to: Error: [$injector:nomod] Module 'ui.materialize' 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.

在我的 app.js:

angular.module('F1FeederApp', [
        'ui.materialize',
        'F1FeederApp.services',
        'F1FeederApp.controllers',
        'ngRoute'
        ]).

我做错了什么?根据上面的 link 这些声明应该已经足够了..

如果您使用的是 bower,请在项目的根目录中尝试 运行。

bower install angular-materialize --save

并将源文件 angular-materialize/src/angular-materialize.js 添加到您的 index.html

如果您没有使用 Bower 或节点,请在您的项目中下载 this 文件并将其添加到您的 index.html

希望对您有所帮助