Hi, i’m trying to enable/disable a Tab Link depending on a certain condition, ex:
<f7-link :class="{ disabled: users.length === 0 }" tab-link="#tab-users">Users</f7-link>
also tried
v-bind:class="..."
but it looks like it watches only for the initial state… (‘users.length’ will change after a rest call) and never updates. ex:
users = []; //link disabled
setTimeout(function() {
users.push("Jack"); //still disabled here <--
}, 2000);
Am i missin anything? Thanks