import $ from 'jquery'; /** * Helper to user bootstrap popover in vue.js. * Follow docs for html attributes: https://getbootstrap.com/docs/3.3/javascript/#static-popover * * @example * import popover from 'vue_shared/directives/popover.js'; * { * directives: [popover] * } * popover */ export default { bind(el, binding) { $(el).popover(binding.value); }, unbind(el) { $(el).popover('dispose'); }, };