Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<template>
<div>
<div class="text">hello</div>
</div>
</template>
<script>
export default {
data() {
return {
color: 'red',
}
}
}
</script>
<style>
.text {
color: v-bind(color);
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment