Skip to content
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

Completion for local variables from v-for is not working #1373

Open
3 tasks done
bugproof opened this issue Aug 1, 2019 · 2 comments
Open
3 tasks done

Completion for local variables from v-for is not working #1373

bugproof opened this issue Aug 1, 2019 · 2 comments

Comments

@bugproof
Copy link

bugproof commented Aug 1, 2019

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: Win
  • Vetur version: 0.21.1
  • VS Code version: 1.36.1

Problem

111

image

image

@ktsn
Copy link
Member

ktsn commented Aug 1, 2019

Repro code:

<template>
  <div>
    <div v-for="item in list">
      {{ item.bar }}
    </div>
  </div>
</template>

<script lang="ts">
import Vue from 'vue'

interface Foo {
  bar: string
}

export default Vue.extend({
  data: () => ({
    list: [] as Foo[]
  })
})
</script>

Looks like hover is also not working on local variables declared by v-for. => EDIT: filed #1374

@ktsn ktsn changed the title Typescript and autocomplete in template for data and properties Completion for local variables from v-for is not working Aug 1, 2019
@ktsn ktsn self-assigned this Sep 11, 2019
@ktsn
Copy link
Member

ktsn commented Sep 11, 2019

I realized that this issue is related with #1129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants