Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scoped templates #203

Open
volkerrichert opened this issue May 12, 2020 · 4 comments
Open

scoped templates #203

volkerrichert opened this issue May 12, 2020 · 4 comments

Comments

@volkerrichert
Copy link

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

@karol-f
Copy link
Owner

karol-f commented Jul 1, 2020

Hi, sorry for the late response - can You please prepare e.g. CodeSandbox or GitHub repository? Thanks.

@SergkeiM
Copy link

SergkeiM commented Dec 30, 2020

Hi @karol-f I think @volkerrichert is talking about scoped slots #174 (vuejs feature), It will be nice to have it.

@itd24
Copy link

itd24 commented Sep 16, 2022

any update on this?

@karol-f
Copy link
Owner

karol-f commented Sep 16, 2022

Hi, unfortunately I won't implement it. But Pull Requests are welcome, regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants