gabrielmoreira / riot-router

Riot Router - A simple routing solution for Riot
MIT License
77 stars 13 forks source link

Update/reload child tag #35

Open mvuidev opened 7 years ago

mvuidev commented 7 years ago

Hi ! Thanks for this great router.

I need to reload a tag by clicking a button from its parent tag. Here is an example :

Routes :
/pages (parent tag)
/pages/:id/content (child tag)

<pages>
<a href="#" onclick={update-child}>
<div data-is="route"></div>
</pages>

The "content" tag is loaded in the route tag. By clicking the parent tag button, an ajax function updates the page content, but now i need to reload the "content" tag to see the changes.

Is it possible and how to do that ?

Thank you !