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

Properties

[REF_ID]

[REF_ID]: boolean
internal

Private _owner

_owner: IModel<any> | null = null

id

id: string = uniqueId('model-ref-')

initialValue

initialValue: Maybe<Value>

model$

model$: BehaviorSubject<Model | null>

patchedValue

patchedValue: Maybe<Value> = None()
internal

Accessors

error

form

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(): Model

getParent

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