No examples of usage
The Readme shows how to install it, but no examples of usage.
How do we provide a #hash to a <LinkTo /> component? Is that even possible? (hint: we should probably make that possible)
If I use an anchor tag like <a href="/some-page#hash"> it causes a full nagivation rather than transition, so that's out as well.
The only way I've been able to get hashes to work is by using a button with a click handler, as per the code below.
<button type="button" {{on "click" this.goToTest}}>Some Page</a>
@service router
@action
goToTest() {
const url = this.router.urlFor('my.route')
this.router.transitionTo(`${url}#hash`)
}
(In theory you could also use an <a> tag with a click handler and event.preventDefault too.)
Is there a different way? Can we get those examples added to the readme?
I should note that <a href="#some-thing-on-same-page"> works just fine. I'm specifically referring to transitioning to another page, then applying the hash