Skip to content

Scoped HTML #12370

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

Closed
nfplee opened this issue Dec 1, 2021 · 3 comments
Closed

Scoped HTML #12370

nfplee opened this issue Dec 1, 2021 · 3 comments

Comments

@nfplee
Copy link

nfplee commented Dec 1, 2021

What problem does this feature solve?

Allows you to create a scoped block of HTML without having to create a component (similar to petite-vue).

This has already been mentioned here. However after searching for the issue/PR for hours I still cannot find it.

Please could you either keep this issue, re-open the original issue or add a comment which atleast links to the issue/pr.

What does the proposed API look like?

<div v-scope="{ count: 0 }">
  {{ count }}
  <button @click="count++">inc</button>
</div>
@posva
Copy link
Member

posva commented Dec 1, 2021

Duplicate of #7325

@posva posva marked this as a duplicate of #7325 Dec 1, 2021
@posva posva closed this as completed Dec 1, 2021
@posva
Copy link
Member

posva commented Dec 1, 2021

Please, search existing issues and pull requests before opening issues, it saves maintainers a lot of time 🙏 (As mentioned in the other issue: https://github.com/vuejs/vue/pulls?q=is%3Apr+sort%3Aupdated-desc+v-scope+is%3Aclosed+)

@nfplee
Copy link
Author

nfplee commented Dec 1, 2021

Thanks for the link but I commented on the other issue 18 days ago without reply. I also mentioned in my issue I had spent hours searching for the original issue.

Also the duplicate issue has been closed and petitue-vue has come out since then so maybe it should be reconsidered.

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