Last active
August 2, 2019 09:16
-
-
Save harrybeckwith/a9e25ce550d788e2d1774f4973bf047c to your computer and use it in GitHub Desktop.
data and methods for active toggle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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