Skip to main content
Version: 9.0.0

FormStore

FormStore extends FormGroup. Tracks the value and validity state of a group of AbstractControl instances.

Constructor#

constructor(
controls: { [key: string]: AbstractControl; },
validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null,
asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null
)

Properties#

get isChanged#

Returns true if any of FormStore's controls or relationships have changed.

PropertyReturn type
get isChanged()boolean

formObject#

Getter and setter for FormObject for this FormStore.

PropertyReturn type
set formObject(formObject: FormObject<T>)
get formObject()FormObject<T>

get model#

PropertyReturn type
get model()T

get isSubmitted#

Returns true if FormStore.save method was already called, false otherwise.

PropertyReturn type
get isSubmitted()boolean

Methods#

save()#

Initiates the saving process. See more about the saving process in the guide.

MethodReturn type
save()Observable<T>