Skip to content

error scope for component's slot when in v-for #1268

Closed
@TerenceZ

Description

@TerenceZ

When compiling the example followed, the console will print the error Error when evaluating the "item.value", which is raised by the slot directive called in the content linker in _compile function (src/instance/lifecycle).

<comp v-for="item in items">
  {{item.value}}
</comp>

<template id="comp">
  <div>
    <slot></slot>
  </div>
</template>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions