Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModelRef<Value, Parent, Model>

Type parameters

Hierarchy

  • ModelRef

Implements

Index

Constructors

constructor

  • new ModelRef(current?: Model | null, initialValue?: Maybe<Value>, owner: Parent | null): ModelRef
  • internal

    Parameters

    • Default value current: Model | null = null
    • Default value initialValue: Maybe<Value> = None()
    • owner: Parent | null

    Returns ModelRef

Properties

[REF_ID]

[REF_ID]: boolean
internal

Private _owner

_owner: IModel<any> | null = null

initialValue

initialValue: Maybe<Value>

model$

model$: BehaviorSubject<Model | null>

patchedValue

patchedValue: Maybe<Value> = None()
internal

Accessors

error

form

  • get form(): undefined | null | FormModel<any>

owner

  • get owner(): IModel<any> | null
  • set owner(owner: IModel<any> | null): void

validators

Methods

clear

  • clear(): void

dirty

  • dirty(): boolean

dispose

  • dispose(): void

getModel

  • getModel(): null | Model

getParent

  • getParent(): null | IModel<any>

getRawValue

  • getRawValue(): Value | null

getSubmitValue

  • getSubmitValue(): void

initialize

  • initialize(value: Value): void

patchValue

  • patchValue(value: Value): void

pristine

  • pristine(): boolean

reset

  • reset(): void

setModel

  • setModel(model: Model | null): void

touched

  • touched(): boolean

valid

  • valid(): boolean

validate

Generated using TypeDoc