0
這是我的script.js代碼:
var app = angular.module('starter', [])
app.provider('RouteHelpers', function() {
this.basepath = function (uri) {
return 'app/views/' + uri;
};
this.$get = function() {
};
});
app.config(function (RouteHelpers) {
console.log('Never gets here');
});
這是index.html的:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<script src="angular.min.js"></script>
<script src="script.js"></script>
</head>
<body ng-app='starter'>
</body>
</html>
而且我得到這個錯誤在我的瀏覽器中:https://tinyurl.com/nbareaa 有人知道這段代碼有什麼問題嗎?