<b-button
id="show-btn"
@click="$bvModal.show('bv-modal-example')"
>
Open Modal
</b-button>
<b-modal id="bv-modal-example">Hello From My Modal!</b-modal>
Vue version: 2.6.10
Installed and set Bootstrap in App.js
import BootstrapVue from 'bootstrap-vue';
Vue.use(BootstrapVue);
I got the error TypeError: Cannot read property 'show' of undefined when I tried to open the modal.
What else should I install or set for BoostrapVue Modal to use as the instance method?
Thanks, everyone!