[Vuejs]-NativeScript-vue custom switch not working

0👍

So I managed to fix my issue. My mistake was that I was emitting tap instead of input in my component. I feel stupid but I’m leaving this up instead someone struggles like I did

The bottom line is:

You can use v-model on any tag, but in order to update its value, it will need to receive an “input” event with some data. That’s why my child component must perform this.$emit("input", value);

Leave a comment