I’m trying to listen in to the click of a {{linkTo}}, so that I can do additional stuff (basically do an animation) besides loading the new template.
I’ve figured out that i can put my code in renderTemplate() of the route, but the problem with that is that the effect will happen for every link to that route (which is not what I want). I want the scroll to only trigger for a specific {{linkTo}}.
I’ve tried wrapping the specific {{linkTo}} in a {{view}} - but it seems like the click() is being skipped / not triggered in the view when it comes from a {{linkTo}}… What should I do? I suppose i could possibly consider replacing the {{linkTo}} with an ‘<a>’ element, but I would have to replicate the effect of the {{linkTo}}. I’m not exactly sure that’s recommended, or even possible (a ‘this.transitionTo()’ doesnt work in the view code!)