Skip to content

Instantly share code, notes, and snippets.

@micheleriva
Last active February 8, 2019 16:18
Show Gist options
  • Save micheleriva/096cef1068f5ad1adcc16e79557465c6 to your computer and use it in GitHub Desktop.
Save micheleriva/096cef1068f5ad1adcc16e79557465c6 to your computer and use it in GitHub Desktop.
<template>
<div ref="content"> Hi! </div>
</template>
<script>
export default {
name: "someComponent",
data() {
return {
contentClass: ""
},
methods: {
addClass(){
return this.contentClass = "foo";
}
},
mounted() {
this.addClass();
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment