I am looking to include some additional information in the navbar (parent component) using Vue Portal.
So, within a component, I can use the following code:
<portal to="navbar">
<b-button>Some option</b-button>
</portal>
This means that in the Navbar component, I have:
<portal-target name="navbar"></portal-target>
However, I want to insert a separator in this navbar only if the portal is enabled:
<b-nav-text v-if="$portal.navbar.enabled">|</b-nav-text>
<portal-target name="navbar"></portal-target>
Unfortunately, the $portal
prototype is not available. Is there an alternative solution?