function destroy() {
                    element.find(TERMI_MATCHER).each(function() {
                        const jqEl: any = angular.element(this);
                        if (jqEl.popover) {
                            jqEl.popover("destroy");