generator-cg-angular icon indicating copy to clipboard operation
generator-cg-angular copied to clipboard

HTML5MODE TRUE

Open ghost opened this issue 9 years ago • 3 comments

Hello, I would like to know how to configure html5mode (true) with this generator

ghost avatar Oct 27 '14 19:10 ghost

In app.js just insert $locationProvider.html5Mode(true); Inside the app config, just make sure that it's included the $locationProvider and that should be it.

eknowles avatar Dec 02 '14 23:12 eknowles

That's not all. You'll also need to add rewrite's to connect in order for the live-reload to work.

pusherman avatar Dec 19 '14 18:12 pusherman

I am enabled $locationProvider.html5Mode(true); in my config file. The first load it works but in reloads it shows cant get the URL error

jihin avatar Mar 30 '18 05:03 jihin