vuejs disable button depending array length
0
I am trying to disable/enable a button depending of an array length and so, my code is the following: <button class="submit-button" type="button" v-on:click="DoSomething()" :disabled="array.length > 0">Submit</button> Although, this doesn't work and as response I have the warning: array.length > 0 is not a valid value of attribute 'disabled' Is there any different syntax to enable/disable a button regarding an array length? Any help is welcome
vue.js vue-component
share | improve this question
edited Nov 22 '18 at 6:44
...