0👍
Necropost!
but seriously, as the comments all point out, the code is perfectly fine, it is just that disabled is a negative, so you actually don’t want to test for greater than zero, you want to test for zero if it is to be disabled
<button class="submit-button"
type="button"
v-on:click="DoSomething()"
v-bind:disabled="myarray.length == 0">Submit</button>
- [Vuejs]-Cannot read property of "then" of undefined APOLLO GRAPHQL
- [Vuejs]-Vue js error: Property or method "smoothie" is not defined on the instance but referenced during render
Source:stackexchange.com