I am encountering a problem with the "#" symbol in my angular js website's URL. I need to remove the # from the URL but the method provided isn't working and the site is not displaying properly. Can someone advise me on how to successfully remove the # symbol from the URL?
Below is the code snippet from route.js:-
var app = angular.module("myApp", ["ngRoute"]);
app.config(function($routeProvider) {
$routeProvider
.when("/", {
templateUrl: 'Templates/home.html',
})
.when("/first", {
templateUrl: 'Templates/first.html',
})
.when("/second", {
templateUrl: 'Templates/second.html',
})
.when("/third", {
templateUrl: 'Templates/third.html',
})
.when("/admin", {
templateUrl: 'Templates/admin.html',
})
.otherwise({
redirectTo: '/'
});