In my project I have the following VueJs-Typescript component:
<template>
<form>
<input type="text" v-model="myModel.myDate" />
</form>
</template>
<script lang="ts">
import { Component, Vue, Prop } from 'vue-property-decorator';
@Component
export default class MyComponent extends Vue {
public myModel : Model = new Model();
//myModel.myDate is of type Date
}
</script>
The problem now is, that obvisiously the v-model is not able to bind the value dynamically.
Does someone can give me an idea how I can solve the rendering? The target is that to the frontend the date gets rendered as string (for input field) and backwards it gets rendered as date (for object).