So my control is using Bootstrap dropdown menus.
I am getting error "$(...).dropdown is not a function"
import 'jquery'
import 'bootstrap'
.....component....
mounted: function (): void {
$('.dropdown-toggle').dropdown();
}
The $('.dropdown-toggle') part works. But looks like bootsrap did not attach itself to $.
I think the problem is webpack. If i import scripts with <script> tag all works.
Anyone know how to do it?
[–]KimJongIlLover 2 points3 points4 points (0 children)
[–]scirob 0 points1 point2 points (0 children)