Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created April 2, 2018 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/4381f7e60a9db8fdd822ead897fcba14 to your computer and use it in GitHub Desktop.
Save matthieu-D/4381f7e60a9db8fdd822ead897fcba14 to your computer and use it in GitHub Desktop.
const About = {
template: "<div>About view</div>",
mounted: function() {
console.log("Welcome to the About view");
const userId = this.$route.params.id;
if (userId) {
console.log("You are viewing the user:", userId);
}
},
destroyed: function() {
console.log("Thanks for visiting to the About view");
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment