feat(router): add support for hash-based location#2692
Conversation
|
I'm not sure how to test this (except via an e2e test). Any advice? |
There was a problem hiding this comment.
I notice it is almost identical with Html5LocationStrategy, except one '#'. But it is simple enough to keep as a separate class for now, if things start to get more complication you can explore factoring the commonalities into a base class.
There was a problem hiding this comment.
Depending on browser weirdness, I might have to do some shimming WRT history and hashchanges. I think/hope that evergreen browsers do the right thing, but historically that has not been true. So the behavior here in each class might get a bit more complicated. If not, I'll definitely revisit your suggestion 👍
|
It is not testable, because our DOM adapter is not injectable. I dont' see an easy wait to fix it, without changing that. |
fbc8918 to
f2b814e
Compare
f2b814e to
a67f231
Compare
|
Landed as a67f231. |
|
works as expected, thanks! |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Closes #2555