We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have the following component:
<template> <div>{{ text }}</div> </template> <script lang="ts"> import { ref } from "vue"; import { Vue, setup, mixins } from "vue-class-component"; const Super = setup(() => { const text = ref('A') return { text, } }) export default class HelloWorld extends mixins(Super) { } </script>
It throws TypeScript error:
Here is the repro project: class-component-test.zip
The text was updated successfully, but these errors were encountered:
setup doesn't generate constructor but you should use it for class properties.
setup
Sorry, something went wrong.
@ktsn This is taken from your post:
#416 (comment)
It's "alternative approach" ...
So are you saying it's not implemented yet?
No branches or pull requests
I have the following component:
It throws TypeScript error:
Here is the repro project:
class-component-test.zip
The text was updated successfully, but these errors were encountered: