Have main template and list of components which represents some items on index page. Each component having a link to show item route.
How do I render show template inside component? I don't need to replace all list of components with show view, I need just render some item details at the bottom of its own component.
And one more thing. I need to keep url proper. So when I click on item, url should point on this item (eg.: http://host.com/item/1). And when I go directly by this link it should render show template of element with id=1 inside its own component and keep list of other components on same page (index page).
Aucun commentaire:
Enregistrer un commentaire