Skip to content

Instantly share code, notes, and snippets.

@ritchie46
Created April 30, 2018 09:19
Show Gist options
  • Save ritchie46/157e711b355548241b83a5b3df4bb86f to your computer and use it in GitHub Desktop.
Save ritchie46/157e711b355548241b83a5b3df4bb86f to your computer and use it in GitHub Desktop.
vue-navigation_vue-side
import navigator from './components/navigator.vue'
let vm = new Vue({
el: "#app",
components: {
navigator
},
data: {
activePage: 'link-page1',
},
created() {
this.$on('activeNavigation', arg => {
this.activePage = arg;
});
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment