Skip to content

Scoped HTML #12370

Closed
Closed
@nfplee

Description

@nfplee

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions