Closed agustinvinao closed 11 years ago
Hi, I'm having an issue to reload my app in some route different than the index.
If I don't put $locationProvider.html5Mode(false); all my routes are rewrited to the same routes I have defined, but I can't reload anyone.
For example, my app index path is: http://localhost:8000/mobile/index.html
If I use html5Mode my first route is: http://localhost:8000/mobile/main
/main is my first route, is ok but I can't use reload on my browser, it brakes all.
If I use html5Mode, my first route is: http://localhost:8000/mobile/index.html#!/main
This route works ok, I can reload it, but if I go to any other route, for example a details routes I have like this: http://localhost:8000/mobile/index.html#!/details/192366kwjb9234/events
where my route structure is: /details/:id/events
I couldn't reload, if I do it, it will go to http://localhost:8000/mobile/index.html#!/main and not http://localhost:8000/mobile/index.html#!/details/192366kwjb9234/events.
This internals paths are in partials, my only problem is to reload with the browser, all my app works ok if I go through link.
If you think I'm doing something wrong, please tell me.
Sorry I cant provide a live example, but i couldn't find a way to do it, at least how to do an example to refresh on an internal page.
Thanks
Please close this issue, I found how to fix it.
Hi, I'm having an issue to reload my app in some route different than the index.
If I don't put $locationProvider.html5Mode(false); all my routes are rewrited to the same routes I have defined, but I can't reload anyone.
For example, my app index path is: http://localhost:8000/mobile/index.html
If I use html5Mode my first route is: http://localhost:8000/mobile/main
/main is my first route, is ok but I can't use reload on my browser, it brakes all.
If I use html5Mode, my first route is: http://localhost:8000/mobile/index.html#!/main
This route works ok, I can reload it, but if I go to any other route, for example a details routes I have like this: http://localhost:8000/mobile/index.html#!/details/192366kwjb9234/events
where my route structure is: /details/:id/events
I couldn't reload, if I do it, it will go to http://localhost:8000/mobile/index.html#!/main and not http://localhost:8000/mobile/index.html#!/details/192366kwjb9234/events.
This internals paths are in partials, my only problem is to reload with the browser, all my app works ok if I go through link.
If you think I'm doing something wrong, please tell me.
Sorry I cant provide a live example, but i couldn't find a way to do it, at least how to do an example to refresh on an internal page.
Thanks