Modify these 2 lines :
.config(function ($routeProvider) {
$routeProvider
to be :
.config(function ($routeProvider,$locationProvider) {
$locationProvider.hashPrefix('');
$routeProvider
Credit should go to : https://stackoverflow.com/a/41223197/1564146