I have recently started a project using CLI of Vue3 with Typescript and noticed that the 'vue-class-component' is rather different. In fact, I am not sure if this project is really compatible with the latest Vue 3 functionality.
I came across these two threads: https://github.com/vuejs/vue-class-component/issues/406 and https://github.com/vuejs/vue-class-component/issues/406#issuecomment-745490016 so I am not sure if 'vue-class-component' is the way to go these days.
Currently, I am trying to figure out how to Watch a property pass to a component but none of the stuff such as @Watch or @Prop are available anymore.
Can somebody provide an example on how to go about this?
Here is a snippet and I would like to know how to watch the msg property value:
<script lang="ts">
import { Options, Vue } from "vue-class-component";
@Options({
props: {
msg: String,
},
})
export default class HelloWorld extends Vue {
msg!: string;
}
</script>
Much obliged