我正在計劃用我的應用實現角度材料設計。我已經包括了material.js和material.css和應用程序定義去如下, 這裏是代碼,帶angularJS應用的角度材料
的Index.html:
<script src="js/ripples.js"></script>
<script src="js/material.js"></script>
app.js AR routerApp = angular.module('DiginRt',['ui.bootstrap','SimpleCouch','ngMaterial']);
當我開始運行應用程序,它說
Uncaught Error: [$injector:modulerr] Failed to instantiate module DiginRt due to:
Error: [$injector:modulerr] Failed to instantiate module ngMaterial due to:
Error: [$injector:nomod] Module 'ngMaterial' 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.
你在'material.js'之前或之後放置'angular.js'引用的地方? – Rebornix 2015-02-10 05:38:49
在angular.js – Sajeetharan 2015-02-10 05:39:59
之後,您最好創建一個jsfiddler/plnkr.co/codpen演示應用以更好地排除故障。 – Rebornix 2015-02-10 05:42:40