ionChange String contains an invalid character

I just created a new project with ionic cli : ionic start --type=vue
So I use VueJS with Typescript and ionic 5.
Here’s my code in Home.vue

    <ion-header :translucent="true">
    <ion-content :fullscreen="true">
      <ion-header collapse="condense">
          <ion-title size="large">Blank</ion-title>
      <div id="container">
        <strong>Ready to create an app?</strong>
        <p>Start with Ionic <a target="_blank" rel="noopener noreferrer" href="">UI Components</a></p>
            <!-- <IonCheckbox (ionChange)="test($event)"  color="primary" /> -->
            <ion-checkbox (ionChange)="test($event)" color="primary"></ion-checkbox>

<script lang="ts">
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar, IonCheckbox } from '@ionic/vue';
import { defineComponent } from 'vue';

export default defineComponent({
  name: 'Home',
  components: {
  methods: {
    test: ($e: any) => {
      console.log('test', $e)

And I have this error in Chrome :

Failed to execute ‘setAttribute’ on ‘Element’: ‘(ionChange)’ is not a valid attribute name.

I don’t understand, I tried with ionChange, @change, @update, nothing is working. I tried also with or it doesn’t change anything.

That seems very basic, if someone can help me.

(ionChange)="doStuffForMe($event)" is Angular syntax. You need to bind to the ionChange event the Vue way. Which I don’t know by heart.

Edit: quick search:

<button v-on:click="counter += 1">Add 1</button>

So maybe <ion-checkbox v-on:ionChange="test($event)"></ion-checkbox>?