Interface ControlScope<T>

used control/notify/pause scope about changes in current context

interface ControlScope<T extends Context> {
    checkNoChanges(): void;
    detach(): void;
    emitChanges(propertyKey?: keyof T, propertyValue?: any): void;
    isAttached(): boolean;
    reattach(): void;
}

Type Parameters

Implemented by

Methods

  • throw error if any changes has been made

    Returns void

  • 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

  • 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 current stacte of applying change detection.

    Returns boolean

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

    Returns void