lundi 10 août 2020

Hide div if value null in vue.js laravel

I want to hide div if value of a variable is null or empty, i'm using following code but if the value is empty or NULL it is still showing the same div using vue.js.

 <p class="user" v-show="Item.date !== 'NULL'"><i class="fa fa-user"></i></p>

Here i'm checking Item.date whether it is null or not.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire