There is a method that returns true or false:
canEdit() {
if (this.$route.params.edit === "edit") {
return true;
}
},
How do I get the v-model attribute to have the appropriate variable depending on what the canEdit method returns?
<b-form-input id="sender" v-model="sender"> </b-form-input>