Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable html5 mode in ui-router-ng2? #2919

Closed
kolkov opened this issue Aug 14, 2016 · 2 comments
Closed

How to disable html5 mode in ui-router-ng2? #2919

kolkov opened this issue Aug 14, 2016 · 2 comments

Comments

@kolkov
Copy link

kolkov commented Aug 14, 2016

I did not find this in the manual (((

@christopherthielen
Copy link
Contributor

https://github.com/ui-router/quickstart-ng2/blob/master/app/_bootstrap/bootstrap.ts#L17-L18

Short answer: provide the HashLocationStrategy

import {HashLocationStrategy} from "@angular/common";

... 
bootstrap(/* stuff */
  [{ provide: LocationStrategy, useClass: HashLocationStrategy }, .......]
)

@kolkov
Copy link
Author

kolkov commented Aug 14, 2016

Thanks a lot! I did it, but there was no change in the browser...
Now I understand my mistake. I did not setup TypeScript compiler in my IDEA))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants