I am using ng-route with html5 mode and http-server in npm. I have a main page with ng-view, and when i click on a link the view displays fine. But when i refresh only view display with out header. Below is
.config(['$routeProvider', function ($routeProvider) {
//console.log($routeProvider);
$routeProvider.
when('/app/gateways', {
templateUrl: '/app/gateways.html',
}).
when('/app/lights', {
templateUrl: '/app/lights.html',
}).
when('/app/control', {
templateUrl: '/app/assign-gateway-to-user.html',
})
//otherwise({
// redirectTo: '/app/index.html'
//});
}])
.config(['$locationProvider', function($locationProvider)
{
$locationProvider.html5Mode({
enabled: true,
requireBase: false,
});
}])