Reputation: 209
can anyone tell me why my "b-form-select-option" is not working?
Thats my code:
I am using Vue with Bootstrap, everything else works, except for this single command. I am getting the standard "unknown html tag" error.
What is wrong here? I just copied the code from https://bootstrap-vue.js.org/docs/components/form-select/ and adapted it to my project.
Upvotes: 3
Views: 5157
Reputation: 5435
Make sure you are using BootstrapVue v2.2.x
.
The <b-form-select-*>
sub components were introduced in v2.2.0
.
Upvotes: 3
Reputation: 99
There you have a simple example of usage.
You have to declare options inside <script>...</script>
, like this:
options: [
{
value: null,
text: 'Please select an option'
},
]
Upvotes: -1
Reputation: 61
the "unknown html tag" error means your editor doesn't recogonize thie element, your web app can still work, you can add this tag as an custom tag in your editor preference
Upvotes: 2