I’m using router components a lot, and that works great. Sometimes I have a situation, where I would like to be able to use some component as regular page and as popup depending on the ‘user route’. This might be dependent on UX decisions: open a detail panel in new page, or in a popup with push:true option.
Currently, I maintain two versions of some components: one with
<div class="page"> layout, and one with
<div class="popup"> layout, each with a corresponding route.
I’m wondering if it is possible to setup a component without a specified page/popup/modal container, and define the way it should be openend with a
router.navigate option (and matching
data- attribute on a link).