I'm working on implementing bootstrap-tooltip in the aurelia framework. To achieve this, I've created a custom attribute class called BootstrapTooltip.
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");
}
}
Currently, I'm encountering an error stating "Bootstrap_1.default is not a function."
I suspect that the issue might be related to the use of $, but I'm unsure of the exact reason...