I have multiple forms created from API. For each form, I need to check if the value of inputs is changed or not; so that I can make the button disabled or enabled.
So, I tried to create a flag: isChanged: false, so that, I can make the button like this:
<v-btn
:disabled="!isChanged"
>
Save
</v-btn>
But, as I have multiple forms, I need to create multiple flags maybe, but I don't understand how to create multiple flags dynamically for each form.
Also, I have a Save All button which may require a new flag such as isChangedAny: false to detect if any of the multiple forms changed or not.
If any of the form inputs change, that button needs to be enabled from disabled. But, most importantly, I can't figure out how to create a method to detect if the form inputs change or not. How can I do that?