Formula Lifecycle
Create#
To create your form instance call the formula() method, this creates a form instance that can be attached to any
element with the use directive.
When using like this, on component destruction the form will automatically unbind
Update#
Any Formula instance can be updated using the updateForm method, which accepts a new FormulaOptions object. When
using update all existing handlers will be removed and rebound.
Reset#
The resetForm can be called at any time during the life of the form, it will reset the form to it's initial state after
defaultValues and element values have been applied, also touched and dirty stores are reset.
Destroy#
The destroyForm method allows the form to be destroyed early, which removes all handlers and removes the stores from the
global store.