My use case is something like this.
- I have a html
<p>element which's id is "demo". - I want to read that
<p>element throughv-ifand if the value inside thatelement equals to the "EXPIRED" then I want to remove the
disabledattribute in my button.
Future explaining my use case, I want to initially disabled my button and when the status updated to EXPIRED in that paragraph I want remove that disabled part from my button.
How to I achieve this using
- computed properties / watchers
- v-if
<template lang="html">
<div class="">
<p id="demo"></p>
<button type="button" name="button" class="btn btn-primary" disabled>Start</button>
</div>
</template>