Skip to content

Commit

Permalink
#3 Emit event upon tab change
Browse files Browse the repository at this point in the history
  • Loading branch information
cristijora committed May 30, 2017
1 parent 3e0e1c0 commit 74e1412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/vue-tabs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/components/VueTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
}
}
this.activeTabIndex = newIndex
this.$emit('tab-change', newIndex)
this.tryChangeRoute(newTab)
},
tryChangeRoute (tab) {
Expand Down

0 comments on commit 74e1412

Please sign in to comment.