DEV Community

Discussion on: Hands-on Vue.js for Beginners (Part 4)

Collapse
 
ericstolzervim profile image
Eric Stolzervim

Pass game as a parameter.
Then can have ...

methods: {
addRating(game) {game.rating +=1 }
}

So don't need "this."

Collapse
 
marinamosti profile image
Marina Mosti

This is another way to do it :)