Skip to content

Instantly share code, notes, and snippets.

@gogl92
Created October 11, 2020 19:13
Show Gist options
  • Save gogl92/db38256f0730555e5c020a50fde51b3b to your computer and use it in GitHub Desktop.
Save gogl92/db38256f0730555e5c020a50fde51b3b to your computer and use it in GitHub Desktop.
Bootstrap vue modal
<div id="app">
<p>{{message}}</p>
<div>
<b-button v-b-modal.modal-1>Launch demo modal</b-button>
<b-modal id="modal-1" title="BootstrapVue">
<p class="my-4">Hello from modal!</p>
</b-modal>
</div>
</div>
// Install BootstrapVue
Vue.use(BootstrapVue)
var app = new Vue({
el:'#app',
data: {
message:"Hello world"
}
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-vue/2.15.0/bootstrap-vue.min.js"></script>
<link href="https://unpkg.com/bootstrap@4.1.3/dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://unpkg.com/bootstrap-vue@2.0.0-rc.11/dist/bootstrap-vue.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment