In vue, I have this
<v-dialog v-model="data_table.dialog">
and I have a observable variable is_mobile
. I want it so that the above tag looks like this
<v-dialog v-model="data_table.dialog">
when is_mobile
is false. And look like this
<v-dialog fullscreen hide-overlay transition="dialog-bottom-transition" v-model="data_table.dialog">
when is_mobile
is true.
How can I do it?
I only know how to set the attribute value, but in this case, I want the attribute itself to be included or not, and for the transition, attribute and value included or attribute not included. Basically exactly the result as shown above, and not like fullscreen="true"
/fullscreen="false"
.
Thanks