I have an input field that gets pre-populated from my DB, but I won't want it to be pre-filled if the value is 0
Eg:
<input v-model="price" type="text">
If
data: {
price: 0
}
I don't want my input field to display 0, I know that I can do stuff like :disabled="price == 0" but this will hide the whole input field, I just don't want to display the value if its 0
price !== 0