Skip to content

{{> yield }} example  #12

Closed
Closed
@lithiumjake

Description

@lithiumjake

re: http://vuejs.org/guide/composition.html

I might suggest removing thje id="#test" from

div id="test" v-component="my-component">
    <p>original content</p>
</div>

In all the other examples where an id is used, it's used as a target for a viewmodel. However, since viewmodels can only use components on descendant elements, the naive beginner finds their code not working when targeting the #test 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