0
我試圖實現angular-wizard模塊。angularjs控制器模塊參考加載空白頁
我有一個由yeoman生成的角應用程序。我用bower install angular-wizard
獲取模塊和參考它在我index.html
權與其他模塊app.js
腳本標籤上面,像角資源,角餅乾等
主要看加載罰款,直到我的mgo-angular-wizard
引用添加到控制器依賴關係,當添加頁面加載時在控制檯中沒有錯誤的情況下爲空。 如:
'use strict';
angular.module('merlinApp', ['mgo-angular-wizard']) // this is where everything breaks
.controller('MainCtrl', function ($scope) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
});
我的index.html已經包含在這個順序以下腳本:
<script src="bower_components/jquery/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<!-- build:js scripts/modules.js -->
<script src="bower_components/angular-resource/angular-resource.js"></script>
<script src="bower_components/angular-cookies/angular-cookies.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/angular-wizard/dist/angular-wizard.js"></script>
<!-- endbuild -->
<!-- build:js({.tmp,app}) scripts/scripts.js -->
<script src="scripts/app.js"></script>
<script src="scripts/controllers/main.js"></script>
<!-- endbuild -->
我添加了lodash,但在最初開始故障排除,重新啓動和緩存重置工作時沒有重新啓動服務器。好的,叫Nish! – JonFriesen