Skip to content

Template Interpolation Issue - First letter not recognized in event variable assignment #1319

@xon52

Description

@xon52

Info

  • Platform: Win
  • Vetur version: 0.21.0
  • VS Code version: 1.35.0

Problem

When entering a data property into an event, it ignores the first letter and so persistently reports that the property does not exist. This error can be removed by surrounding the statement in curly brackets, but that creates a bigger Vue error.
vetur issue

Reproducible Case

Turn Template Interpolation Service on and write the following code:

<template>
	<span @click="eg = true">Test</span>
</template>

<script>
export default {
	data() {
		return {
			eg: false
		}
	}
}
</script>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions