Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed May 11, 2018
1 parent f404920 commit 7e21ecb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export const createTimeago = (opts = {}) => {
}
}

export default (Vue, opts) => {
export const install = (Vue, opts) => {
const Component = createTimeago(opts)
Vue.component(Component.name, Component)
}

export default install

0 comments on commit 7e21ecb

Please sign in to comment.