re: Hands-on Vue.js for Beginners (Part 4) VIEW POST

FULL DISCUSSION
 

Thanks for the tutorial, Marina. Here's my solution:

HTML:

<span v-for="star in game.rating" @click="increaseRating(game)"></span>

JS bit:

methods: {
        increaseRating(game){
        game.rating++;
    }
},

Now on to the next! :D

 
code of conduct - report abuse