UNPKG

vue-instantsearch

Version:

👀 Lightning-fast Algolia search for Vue apps

12 lines (9 loc) • 291 B
/* eslint import/namespace: ['error', { allowComputed: true }]*/ import * as widgets from './widgets'; export const plugin = { install(localVue) { Object.keys(widgets).forEach((widgetName) => { localVue.component(widgets[widgetName].name, widgets[widgetName]); }); }, };