maru0923 / angular-express-ejs-seed

Modify AngularSeed
6 stars 3 forks source link

Not work correctly with html5mode enable #1

Open hungtaoquang opened 11 years ago

hungtaoquang commented 11 years ago

Hi maru0923!

Have you tested ejs template engine with html5mode enable in angular js?

I stuck with this issue 2 days. I can not figure out what's wrong in my code. Before using your code, I download seed code in jade engine, it works correctly. Then, I compared my code (in ejs) with jade seed code and can not figure what's happen. Lastly, I download your seed code (but don't use html5mode), I enabled html5mode, changed some link => fail, too.

I'm very appreciate if you can help! Thanks!

maru0923 commented 11 years ago

Hi I do not know that EJS has the HTML5 mode. I have the memory which worked only by having embedded the tag of EJS at html written by HTML5.

maru0923 commented 11 years ago

Hi I understood that you said about "$locationProvider.html5Mode(true)". Sorry. I have not used that.

hungtaoquang commented 11 years ago

Hi maru0923!

Yeah, I mentioned about "$locationProvider.html5Mode(true)". I made it work already! Thanks! Just put in header tag!

Nice to meet you!