I need to use bootstrap-tooltip in aurelia framework. For this, I have created a BootstrapTooltip attribute class.
import {customAttribute, inject} from "aurelia-framework";
import $ from "bootstrap";
@customAttribute("bootstrap-tooltip")
@inject(Element)
export class BootstrapTooltip {
constructor(element) {
this.element = element;
}
bind() {
$(this.element).tooltip();
}
unbind() {
$(this.element).tooltip("destroy");
}
}
This is the current code. But I am getting the error "Bootstrap_1.default is not a function"
Maybe this is because of the $, but not sure what's the reason...