I tried removing # from the URL like http://locohost:8080/app/#/home .
Tried using
$locationProvider.html5Mode({
enabled: true,
requireBase: false,
hasPrefix: ''
});
Also added <base href=""/> in index.html
inside <head>
tag
But on hitting the URL http://locohost:8080/app/home, getting 404 error