Я не могу вытащить angular.min.js и angular-route.js из папки web content/lib на моей HTML-странице.
angular.min.js
angular-route.js
web content/lib
Это мой код:
HomeContent.html
body> <div align='center'> <a href="#!/AdminLogin">Admin</a> <a href="#!/Registration">Registation</a> </div> <div ng-view align='center'></div> <!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular-route.js"></script> --> <script src="lib/angular.min.js"></script> <script src="lib/angular-route.js"></script> <script> angular.module("myApp", ["ngRoute"]) .config(function($routeProvider){ $routeProvider .when("/AdminLogin", { template:"<h2>You are on Admin login</h2>" }) .when("/Registration", { template:"<h2>You are on Registration</h2>" }) }) </script> </body>
Но получаю ошибку ниже:
HomeContent.html: 16 GET http://localhost:8085/WebSiteSTT/HTML/lib/angular.min.js 404 (не найдено) HomeContent.html: 17 GET http://localhost:8085/WebSiteSTT/HTML/lib/angular-route.js 404 (не найдено)