VueJS dont display input value if its 0
Simply change price to empty string when it's 0:
created() {
//since 0 is considered false it will put an empty string in case priceFromDB is 0
this.price = priceFromDB || ''
}
Simply change price to empty string when it's 0:
created() {
//since 0 is considered false it will put an empty string in case priceFromDB is 0
this.price = priceFromDB || ''
}