简体   繁体   中英

min.js files are not found and their type present as to text/html

my index file is:

<!DOCTYPE html>
<html lang="en" ng-app="myApp">
<head>
    <meta charset="UTF-8">
    <title>Macabi Tel Aviv</title>
    <script src="lib/angular/angular.min.js"></script>
    <script src="lib/angular/angular-route.min.js"></script>
    <script src="js/app.js"></script>
    <script src="js/controllers.js"></script>

    <link rel="stylesheet" href="css/style.css">
</head>
<body>

<div class="main" ng-view>


</div>

</body>
</html>

When im trying to run the code throgh xampp i see in the network (while debugging) that the min.js files are not found and their type present as to text/html.... why?

ps in the controller files i use routing

Try using this

<script type="text/javascript" src="lib/angular/angular.min.js"></script>

But if the file is not being find check the route, maybe it should start with "/", depending if the route shoul be relative or not

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM