Created
August 7, 2018 22:57
-
-
Save Jantho1990/0b21e54fda459c3c7ed5be4dcab8116d to your computer and use it in GitHub Desktop.
StarRating Vue -- 8b
This file contains 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
<template> | |
<div class="rating-inputs"> | |
<label for="rating">Rating</label> | |
<input | |
name="rating" | |
type="number" | |
v-model="rating_" | |
/> | |
</div> | |
</template> | |
<script> | |
export default { | |
// ... | |
data () { | |
return { | |
rating_: this.rating | |
} | |
}, | |
// ... | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment