Skip to content

Instantly share code, notes, and snippets.

@harrybeckwith
Last active August 2, 2019 09:16
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 harrybeckwith/a9e25ce550d788e2d1774f4973bf047c to your computer and use it in GitHub Desktop.
Save harrybeckwith/a9e25ce550d788e2d1774f4973bf047c to your computer and use it in GitHub Desktop.
data and methods for active toggle
<script>
export default {
data() {
return {
activeItem: null,
};
},
methods: {
selectItem(i) {
this.activeItem = i;
},
},
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment