would be great if this component could be linked to a boolean through v-model so that it is possible to tell if it is open or closed. e.g. <read-more v-model="isReadMore" :text="body" ... /> in the template and data() {return{ isReadMore:false,body:'The text i want to show'}} in the script. hope that makes sense
would be great if this component could be linked to a boolean through v-model so that it is possible to tell if it is open or closed. e.g.
<read-more v-model="isReadMore" :text="body" ... />
in the template anddata() {return{ isReadMore:false,body:'The text i want to show'}}
in the script. hope that makes sense