After beginning a project with vuejs-templates and webpack, I decided to incorporate bootstrap-vue.
Now, the challenge is figuring out how to implement a bootstrap button.
In my code base, specifically in main.js
, I have imported BootstrapVue
:
import Vue from 'vue'
import BootstrapVue from 'bootstrap-vue'
import App from './App'
Vue.use(BootstrapVue)
/* eslint-disable no-new */
new Vue({
el: '#app',
template: '<App/>',
components: { App }
})
However, when attempting to use the <b-button>
element in App.vue
:
<template>
<div id="app">
<img src="./assets/logo.png">
<b-button :size="size" :variant="variant" @click="clicked">
Click Me!
</b-button>
<hello></hello>
</div>
</template>
I am encountering errors regarding the attributes associated with the <b-button>
element.
Can anyone provide guidance on how to properly utilize this feature?