Skip to content

Commit

Permalink
Merge pull request spatie#121 from caiquecastro/options-on-install
Browse files Browse the repository at this point in the history
Allow pass options on install plugin
  • Loading branch information
sebastiandedeyne authored Feb 8, 2018
2 parents 162b96e + cc61234 commit 4664620
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 @@ -4,7 +4,9 @@ import Pagination from './components/Pagination';
import { mergeSettings } from './settings';

export default {
install(Vue) {
install(Vue, options = {}) {
mergeSettings(options);

Vue.component('table-component', TableComponent);
Vue.component('table-column', TableColumn);
Vue.component('pagination', Pagination);
Expand Down

0 comments on commit 4664620

Please sign in to comment.