I can't find how to check greater than 0, as minValue(0)
also accepts 0, but if using minValue(1)
then any decimal between 0 and 1 will be not accepted as well.
Also I don't know why I can't use variables from data / computed for maxValue below. It works if I use maxValue(200)
, but I need it to be dynamic.
validations: {
form: {
amount: {
maxValue: maxValue(this.maxAmount), // Uncaught TypeError: Cannot read property 'maxAmount' of undefined
},
},
},
validations: {
form: {
amount: {
maxValue: maxValue(maxAmount), // Uncaught ReferenceError: maxAmount is not defined
},
},
},