Я изучаю AngularJS и хочу разработать простой пример.Я хочу создать простую маршрутизацию.
Это temp.html
документ:
<html>
<head>
<script src="angular.min.js"></script>
<script src="angular-route.js"></script>
<script src="app.js"></script>
<meta charset="utf8">
</head>
<body ng-app="routeApp">
<a href="#/test">TEST</a>
<ng-view></ng-view>
</body>
Это app.js:
var app=angular.module('routeApp' ,[])
.config(function($routeProvider){
$routeProvider.when('/test' , {
templateUrl : 'test.html'
});
});
и Thisis help.html
<html>
<body>
<h1>TEST PAGE</h1>
</body>
</html>
Я получил эту ошибку
Ошибка: [$ инжектор: modulerr] http://errors.angularjs.org/1.6.9/$injector/modulerr?p0=routeApp&p1=[$injector:unpr] http://errors.angularjs.org/1.6.9/$injector/unpr?p0=%24routeProvider K / <@file: /// E: /YahyaApps/hello/angular.min.js: 7: 76 ГБ / p. $ инжектор <@file: /// E: /YahyaApps/hello/angular.min.js: 46: 64d @ file: /// E: /YahyaApps/hello/angular.min.js: 43: 309 e @ file: /// E: /YahyaApps/hello/angular.min.js: 44: 39 invoke @ file:///E:/YahyaApps/hello/angular.min.js:44:124 d @ file: /// E: /YahyaApps/hello/angular.min.js: 42: 271 г / <@file: ///E:/YahyaApps/hello/angular.min.js:42:418 r @ file: /// E: /YahyaApps/hello/angular.min.js: 8: 5 g @ file: /// E: /YahyaApps / hello / angular.min.js: 42: 180 ГБ @ file: /// E: /YahyaApps/hello/angular.min.js: 46: 250 c @ file: /// E: / YahyaApps / hello /angular.min.js: 22: 19 Uc @ file: /// E: /YahyaApps/hello/angular.min.js: 22: 332 we @ file: /// E: /YahyaApps/hello/angular.min.js: 21: 1 @file: /// E: /YahyaApps/hello/angular.min.js: 336: 241 b @ file:///E:/YahyaApps/hello/angular.min.js:38:260</p>
пожалуйста, помогите мне !!!!