请帮助我了解问题出在哪里。
HTML:
<!doctype html>
<html ng-app='ShoppingListCheckOff'>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles/bootstrap.min.css">
<script src="angular.min.js"></script>
<script src="app.js"></script>
</head>
<body>
<div class="col-md-6" ng-controller='ToBuyController' >
</div>
<div class="col-md-6" ng-controller='AlreadyBoughtController' >
</div>
</body>
</html>
这是 app.js
(function () {
'use strict';
angular.module('ShoppingListCheckOff', [])
.controller('ToBuyController', MyToBuyController);
.controller('AlreadyBoughtController', MyAlreadyBoughtController);
.service('ShoppingListCheckOffService', ShoppingListCheckOffService);
MyToBuyController.$inject = ['ShoppingListCheckOffService'];
function MyToBuyController($scope, $filter, $injector) {
}
}
/////////////
MyAlreadyBoughtController.$inject = ['ShoppingListCheckOffService'];
}
function ShoppingListCheckOffService() {
}
})();
错误:angular.min.js:6 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.7/ $injector/modulerr?p0=ShoppingListCheckOf...%20%20at%20Bc% 20(http%3A%2F%2Flocalhost%3A3000%2Fangular.min.js%3A21%3A163)(…)
非常感谢