I am migrating to vue 3 . I am not be able to access the props value in my class instead it gives me 0 and not printing in console the latest value i am using on prop. On template it working fine but i want the latest value of titleComponent in my class
import { Options, Vue } from "vue-class-component";
@Options({
props: {
titleComponent: Number
}
})
export default class StorePin extends Vue {
private titleComponent = 0;
mounted()
{
console.log(this.propValue);
}
get propValue()
{
return this.titleComponent;
}
incremnt()
{
this.titleComponent ++ ;
}
}