Suppose I have this html and I want to do something each time user changes the pet:
<input type="radio" id="cat" name="pet" value="cat">
<input type="radio" id="dog" name="pet" value="dog">
I tried this way:
<input type="radio" id="cat" :change="onPetChange('pet', 'cat')" name="pet" value="cat">
<input type="radio" id="dog" :change="onPetChange('pet', 'dog')" name="pet" value="dog">
But that doesn't work, it just output all values and calls the onPetChange() twice.