[Vuejs]-How to account for still-missing {{data}}?

1πŸ‘

βœ…

I don’t know the correct way to do this. But you can do it like this:

<div v-if="information.name !== undefined">{{information.name}}</div>

Note that just using v-if="information.name" would not be correct.

Leave a comment