vue-custom-element
vue-custom-element copied to clipboard
scoped templates
I'd like to use scoped templates on vce to overwrite some output defined in my component.
E.g. i have a logout compomonet with a "Bootstop Button"
<b-button :id="'submit-'+_uid" type="submit" variant="primary">
<slot name="btnLogout">Logout</slot>
</b-button>
and i like do overwrite it like so:
<app-logout>
<template slot id="btnLogout">goodbye "{{username}}"</template>
</app-logout>
The part inside the template isn't compiled, it's just printed out. How to solve this?
THX,
Volker
Hi, sorry for the late response - can You please prepare e.g. CodeSandbox or GitHub repository? Thanks.
Hi @karol-f I think @volkerrichert is talking about scoped slots
#174 (vuejs feature), It will be nice to have it.
any update on this?
Hi, unfortunately I won't implement it. But Pull Requests are welcome, regards!