I am beginner in AngularJS and i am trying to remove #
symbol from URL and i am using Visual Studio code
IDE ,I did below steps for remove #
from URL and when i launch Application with HTTP Live server
its working and #
removed from URL but when i reload page i am getting 404 can some one suggest me please
app.js
var routerApp = angular.module('routerApp', ['ui.router']);
routerApp.config(function ($stateProvider,$locationProvider,$urlRouterProvider) {
$urlRouterProvider.otherwise('/employeeList');
$stateProvider
.state('home', {
url: '/home',
templateUrl: 'templates/home.html'
})
.state('employeeList', {
url: '/employeeList',
templateUrl: 'templates/list_of_employees.html',
controller: 'EmployeeController'
})
$locationProvider.html5Mode(true).hashPrefix('')
});
index.html
<head>
<base href='/'>
</head>