Skip to content

error scope for fallback content of slot #1282

@TerenceZ

Description

@TerenceZ

Compiling the transcluded slot content and fallback content should be with different scope, however, at current 1.0.0 (0.12.0 is compiled properly), these two are compiled with the vm' _scope, which means that the value something as followed will be resolved from the outside world, not from the vm itself.

<template id="abc">
<div>
  <slot>{{something}}</slot>
</div>
</template>

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