I have a Bootstrap-Vue modal on my page with a large size. I need to adjust the size of the modal based on a specific condition - if it is true, the size should be lg, if it is false, the size should be md. Is there a way to achieve this using Vue.js properties?
<b-modal id="modal-1" size="lg">
<upgrade-popup></upgrade-popup>
</b-modal>
I'm looking for a solution similar to how we use conditional rendering of classes in Vue.
v-bind:class="{ active: isActive, 'text-danger': hasError }"
I tried using a condition like this for the size property, but it didn't work as expected.
:size="{'lg': freeUser, 'md': !freeUser}"