The "v-model" directive requires valid attribute values ​​as LHS
P粉011912640
P粉011912640 2024-03-27 15:53:34
0
1
402

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粉011912640
P粉011912640

reply all(1)
P粉010967136

Try using the active attribute instead of v-model


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!