Start from index.html remove all #
from <a href="#/aboutus">About Us</a>
so it must look like <a href="/aboutus">About Us</a>
.Now in head tag of index.html write <base href="/">
just after last meta tag.
Now in your routing js inject $locationProvider
and write $locatonProvider.html5Mode(true);
Something Like This:-
app.config(function ($routeProvider, $locationProvider) {
$routeProvider
.when("/home", {
templateUrl: "Templates/home.html",
controller: "homeController"
})
.when("/aboutus",{templateUrl:"Templates/aboutus.html"})
.when("/courses", {
templateUrl: "Templates/courses.html",
controller: "coursesController"
})
.when("/students", {
templateUrl: "Templates/students.html",
controller: "studentsController"
})
$locationProvider.html5Mode(true);
});
For more Details watch this video https://www.youtube.com/watch?v=XsRugDQaGOo