I have a nested route: rent/small
the rent template:
Welcome
<p id="slide"> paragraph ...</p>
{{#linkTo rent/small class="button"}}<img src="...">{{/linkTo}}
{{outlet}}
I would like that when you click on the button (and the small template is renderized inside the outlet) the "#slide" paragraph becomes hidden by jquery, like:
$('#slide).slideUp(300);
Then when you go back from the rent/small route to the rent route, the "#slide" paragraph should become visible again, like:
$('#slide').slideDown(300);
Anyone knows hot to do this?