3

I have a Vue application and there is a table where every row has its own id. Then I need to show/hide some elements according condition in v-model directive which compare row id with value in model. The code looks like

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

But this code throws me an error:

'v-model' directives require the attribute value which is valid as LHS

Can somebody tell me please how to solve this problem? Every row has its own condition based on row id.

Thanks for help.

Čamo
  • 3,863
  • 13
  • 62
  • 114

1 Answers1

1

Try active prop instead of v-model

<b-loading :active="actionLoading === table.row.id"></b-loading>
Boussadjra Brahim
  • 82,684
  • 19
  • 144
  • 164