cgross / generator-cg-angular

Yeoman generator for Enterprise Angular projects.
MIT License
592 stars 198 forks source link

HTML5MODE TRUE #75

Open ghost opened 10 years ago

ghost commented 10 years ago

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

eknowles commented 10 years ago

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.

pusherman commented 9 years ago

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

jihin commented 6 years ago

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