my index.html
<html ng-app="myAngApp">
<head>
<meta charset="utf-8">
<link href="main.css" rel="stylesheet" type="text/css">
<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="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="mainscripts.js"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto|Rokkitt" rel="stylesheet">
</head>
<body>
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn">×</a>
<a href="#">Home</a>
<button id="dropdown-btn" class="dropdown-button">Training</button>
<div class="dropdown-content" id="dropdown-ctn">
<a href="#Stundenplan">Stundenplan</a>
<a href="#Training/MuayThai">Muay Thai</a>
<a href="#Training/Boxen">Boxen</a>
<a href="#Training/MMA">MMA</a>
<a href="#Training/BJJ">BJJ</a>
<a href="#Training/K1">K1</a>
<a href="#Training/Capoeira">Capoeira</a>
<a href="#Training/Junioren">Junioren</a>
<a href="#Training/WingTsun">Wing Tsun</a>
</div>
<a href="#/Team">Team</a>
<a href="#/Kontakt">Kontakt</a>
</div>
<div id="main">
<div class="menubutton">
<span class="openbtn">☰ </span>
</div>
<!-- Slideshow container -->
<div class="slidelogo-ctn">
<a href="#" >
<img src="Images/logo.png" class="logoslider" alt="MMA Vienna logo"/>
</a>
<div class="slides">
<img src="Images/img1.jpg" />
<img src="Images/img2.jpg" />
<img src="Images/img3.jpg" />
</div>
</div>
<div id="textandpicbox" ng-view>
</div>
my mainscripts.js
var app = angular.module('myAngApp', ['ngRoute']);
app.config(function($routeProvider) {
$routeProvider
.when('/', {
templateUrl : 'pages/home.html',
controller : 'HomeController'
})
.when('/Stundenplan', {
templateUrl : 'pages/stundenplan.html',
controller : 'StdplController'
})
.when('/Training/MuayThai', {
templateUrl : 'pages/muaythai.html',
controller : 'MuaythaiController'
})
.when('/Training/Boxen', {
templateUrl : 'pages/boxen.html',
controller : 'BoxenController'
})
.when('/Training/MMA', {
templateUrl : 'pages/mma.html',
controller : 'MmaController'
})
.when('/Training/BJJ', {
templateUrl : 'pages/bjj.html',
controller : 'BjjController'
})
.when('/Training/K1', {
templateUrl : 'pages/k1.html',
controller : 'K1Controller'
})
.when('/Training/Capoeira', {
templateUrl : 'pages/capoeira.html',
controller : 'CapoeiraController'
})
.when('/Training/Junioren', {
templateUrl : 'pages/junioren.html',
controller : 'JuniorenController'
})
.when('/Kontakt', {
templateUrl : 'pages/kontakt.html',
controller : 'KontaktController'
})
.when('/Team', {
templateUrl : 'pages/team.html',
controller : 'TeamController'
})
.otherwise({redirectTo: '/'});
});
my local files
Now heres the problem it only loads my "home.html" file while in the original index.hmtl the other ones don't work at all. Ive loaded the website on a http server and I checked the url when clicking on the links. It does change so the links work but somehow my ng-route doesnt recognize the urls. I have been trying things for around 2 hours now and Im stuck at this point. Ive been looking over the code over and oer and can't really find whats missing. As far as I know an app Controller would have no real function in the scenario or am I wrong?