Using typescript - constructor vs mounted




I’m using Typescript with Vue.JS.
Can anyone explain what is the difference between constructor and mounted function? When should I use each?



Constructor and mounted ? Do you mean Created instead of constructor?


No, I was actually referring to a constructor.
When using Typescript you can create a class that extends Vue, and there can create a constructor

See example here : , under section “Refactoring the Code Files”


I would like to know that.

Anyone can provide an answer?