I have used routeProvider and stateProvider in Angular js with HTML5 mode true. Everything is working fine until I refresh the page.
I am using Node.js server, I am not getting what to write on server side so that I don't get "Can not find" error.
Please help me with this, I am not getting any answers from other similar posts.
here's the code of state provider
$stateProvider
.state("/", angularAMD.route({
url: '/',
templateUrl: 'Default/default.html'
}))
.state("aboutUs", angularAMD.route({
url: '/aboutUs',
templateUrl: 'AboutUs.html'
}))
.state("contactUs", angularAMD.route({
url: '/contactUs',
templateUrl: 'ContactUs.html'
}))
.state("order", angularAMD.route({
url: '/order',
templateUrl: 'order/order.html',
controllerUrl: "order/OrderController"
}))
.state("signin", angularAMD.route({
url: '/signin',
templateUrl: 'LoginSignup/Login.html',
controllerUrl: "LoginSignup/LoginController"
}))
.state("dashboard", angularAMD.route({
url: '/dashboard',
templateUrl: 'Dashboard/dashboard.html',
controllerUrl: "Dashboard/dashboardController"
}))
.state("thankYou", angularAMD.route({
url: '/ThankYou.html',
templateUrl: 'ThankYou.html'
}));
$urlRouterProvider.otherwise("/");
$locationProvider.html5Mode(true);