In the following code:
https://jsfiddle.net/willywg/2g7m5qy5/
the button is disabled based on the state of the checkbox.
But when I change:
computed: {
isDisabled: function(){
return !this.terms;
}
}
to
methods: {
isDisabled: function(){
return !this.terms;
}
}
the enabling / disabling no longer works.
Why is this?
According to the documentation:
https://v2.vuejs.org/v2/guide/computed.html
shouldn't both work the same in this example?