[Vuejs]-How to select rows based on string options in html vue js?

0👍

Hard to tell. A reproduction on codesandbox would be welcome.
What I can see in your code at a first glance :

1) You forgot quotes around the options keys and thus it expects a constant. The fact you’re using double equals instead of triple doesn’t help:

v-if="bok.name === 'SEENAT'" // this
v-if="bok.name == SEENAT" // instead of that

2) data should be a function:

data() {
  return {
    rules: [
      {
        name: null,
        section: null,
        data: [{ head: null, value: null }]
      }
    ]
  };
},

Leave a comment