vue bootstrap code example
Example 1: install bootstrap vue
//for vue 3(in theory)
cd [project-name]
vue add bootstrap-vue
//in vue 3, when running 'npm run serve' gives 4 warnings and the preview doesn't show up
//in vue 2 it works fine
Example 2: vue js documentation
new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!'
}
})
Example 3: vue js
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
Example 4: vue js documentation
<div id="app">
{{ message }}
</div>
Example 5: bootstrap
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
Example 6: bootstrap
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>