Closed jokesterfr closed 9 years ago
I fixed the test cases for issue #20. I was missing a check when the pathType
was set to hash
.
For default routes I think it's simpler to set two routes that both point to the same custom element or template. For example, this does the same thing as defaultRoute
.
<app-route path="/" import="/pages/home-page.html"></app-route>
<app-route path="/home" import="/pages/home-page.html"></app-route>
It's really two separate paths that just happen to point to the same page. You could also use a regular expression to match multiple paths.
That's an elegant way to fix this, thank you :)
see issue#20