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

slot-scope support for ngVue component #66

Closed
talberkoSB opened this issue Sep 15, 2018 · 1 comment
Closed

slot-scope support for ngVue component #66

talberkoSB opened this issue Sep 15, 2018 · 1 comment

Comments

@talberkoSB
Copy link

Hi.
Is the slot-scope is supported?

this.$scopedSlots.default({ msg: "hello" })

default is not a function...

@nicolaspayot
Copy link
Member

Nope. ngVue (kind of) supports slots within <vue-component> but that's all. For example :

<vue-component name="Hello">
  <span>{{ user.name }} </span>
</vue-component>

should work, but I would not recommend using it. There are several situations where it doesn't work at all. This is very experimental, I'm thinking about flagging this feature as deprecated.

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

No branches or pull requests

2 participants