Example on 2-way binding on Vue3
I want to set a timer looks like below.
So I have set it up like below.
Data type: TimeData.ts
export class TimeData {
hours: number = 0;
minutes: number = 0;
seconds: number = 0;
}
Set up the property as a model in the child component: Se...
thebrownbox.hashnode.dev2 min read