search

Home  >  Q&A  >  body text

The "v-model" directive requires valid attribute values ​​as LHS

I have a Vue application and I have a table where each row has its own id. I then need to show/hide some elements based on a condition in the v-model directive which compares the row ID to the value in the model. The code looks like

<b-loading v-model="actionLoading === table.row.id"></b-loading>

But this code gives me an error:

The "v-model" directive requires valid attribute values ​​as LHS

Can someone tell me how to solve this problem? Each row has its own condition based on the row ID.

thanks for your help.

P粉011912640P粉011912640282 days ago470

reply all(1)I'll reply

  • P粉010967136

    P粉0109671362024-03-28 13:03:16

    Try using the active attribute instead of v-model

    
    

    reply
    0
  • Cancelreply