vue-form-state-manager
A simple form state manager that can be used as directive.
usage
To register:
import FormState from "vue-form-state-manager";Vue.directive('form-control', FormState);
Use:
<input ... form-control="'field_name'" />
Checking the form state:
; == dirty: Boolean pristine: Boolean ;dirty == ;pristine == ;
Reseting a single input:
name: "MyComp" ... methods: { thisprop = NEW_VALUE; ; } ...
roadmap
- API to control the state programmatically.
licence
MIT