Formula Lifecycle
#
CreateTo 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
#
UpdateAny 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.
#
ResetThe 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.
#
DestroyThe destroyForm
method allows the form to be destroyed early, which removes all handlers and removes the stores from the
global store.