I set html5mode(true) in my app.js. My code is as follows
$routeProvider.when( '/hello/there', {
templateUrl: 'partials/hello.html',
controller : 'HelloCtrl'
} );
// if none of the above routes are met, use this fallback
// which executes the 'AppCtrl' controller (controllers.js)
$routeProvider.otherwise( {
redirectTo: '/'
} );
$locationProvider.html5Mode(true);
But when I browse http://localhost:3000/hello/there
It is thowing 404 error by Loopback raiseUrlNotFoundError. When I set html5Mode(false) all works fine
How to make it work then with html5Mode true?
Thanks in advance