I am using ui-router in my angularjs app inside a website project in Visual Studio, but it only works with the route http://localhost/index.html#!/my-page, but I want the route to be only http://localhost/my-page.
Is there a way to do this?
Here is my routing code:
angular.module('nutricaoApp').config(function ($stateProvider, $urlRouterProvider, $locationProvider, $urlMatcherFactoryProvider) {
$urlMatcherFactoryProvider.caseInsensitive(true);
$urlRouterProvider.otherwise('cardapio-paciente');
$stateProvider
.state('my-page', {
url: '/my-page',
templateUrl: './app/components/my-page.html',
controller: 'MyPageController'
});
$locationProvider.html5Mode(false);
});