Type Parameters

Hierarchy (View Summary)

Constructors

Properties

_attached: boolean
_clone: T
_ctx: T
_inners: Map<keyof T, ReactiveScope<any>>
_keys?: (keyof T)[]
_marked: { [key: string | number | symbol]: [any, any] }
_name?: PropertyKey
_parent?: ReactiveScope<any>

Methods

  • throw error if any changes has been made

    Returns void

  • delete property from context

    Parameters

    • propertyKey: keyof T

    Returns boolean

  • used when want to update ui-view like, you want to replace an array with another without reflect changes on view until reattached again.

    Returns void

  • Returns void

  • Parameters

    • propertyKey: keyof T
    • newValue: any
    • OptionaloldValue: any

    Returns void

  • apply changes now, will not effect the state of the detector wither if attached ot not.

    if a propertyKey is provided, will emit this property only

    Parameters

    • OptionalpropertyKey: keyof T
    • OptionalpropertyValue: any

    Returns void

  • get value of propertyKey in current context

    Parameters

    • propertyKey: keyof T

    Returns any

  • get current context object of this scope

    Returns T

  • get a proxy of the current context object if exists.

    Returns T

  • get a scope for an object named as propertyKey from cache map,

    if the current value is not type od object, will return undefined.

    Type Parameters

    Parameters

    • propertyKey: keyof T

      the name of the property

    Returns undefined | S

  • Type Parameters

    • V extends Record<PropertyKey, any>

    Parameters

    • ...objs: V[]

    Returns (keyof V)[]

  • is current context has propertyKey in hash map keys

    Parameters

    • propertyKey: keyof T

    Returns boolean

  • get current stacte of applying change detection.

    Returns boolean

  • apply all the not emitted changes, and continue emit in time.

    Returns void

  • Parameters

    Returns boolean

  • create a scope with the same type of this scope

    Type Parameters

    Parameters

    • propertyKey: keyof T

    Returns S

  • sc

    Type Parameters

    Parameters

    • propertyKey: keyof T
    • Optionalscope: S

    Returns S

  • Parameters

    Returns void

  • Type Parameters

    Parameters

    • context: T
    • OptionalpropertyKeys: (keyof T)[]

    Returns ReactiveControlScope<T>

  • Type Parameters

    Parameters

    • ctx: T
    • OptionalpropertyKeys: (keyof T)[]

    Returns Scope<{ this: T }>

  • Type Parameters

    Parameters

    • ctx: T
    • OptionalpropertyKeys: (keyof T)[]

    Returns ReadOnlyScope<{ this: T }>

  • Type Parameters

    Parameters

    • ctx: T
    • OptionalpropertyKeys: (keyof T)[]

    Returns Scope<{ this: T }>