Interface ControlOptions

interface ControlOptions {
    coerce?: boolean;
    emitEvent?: boolean;
    emitModelToViewChange?: boolean;
    emitViewToModelChange?: boolean;
    initial?: boolean;
    onlySelf?: boolean;
    strict?: boolean;
}

Properties

coerce?: boolean

used in the RxapFormArray patchValue method.

true - if the value has not a control with any index. The control is created false - default behavior

emitEvent?: boolean
emitModelToViewChange?: boolean
emitViewToModelChange?: boolean
initial?: boolean
onlySelf?: boolean
strict?: boolean

used in the RxapFormArray patchValue method.

true - the length of the control array is limited by the length of the value. false - default behavior

example with strict = true

current from array controls: [ 0: {}, 1: {}, 2: {} ]

patch value A: [ 0: {}, 1: {}, 2: {} ] result: [ 0: {}, 1: {}, 2: {} ]

path value B: [ 0: {}, 1: {} ] result: [ 0: {}, 1: {} ]