AngularTS
    Preparing search index...

    Interface WasmScope

    Host-side contract for one AngularTS scope exposed to Wasm clients.

    The wrapper mutates the real AngularTS scope. It does not use event bus, scope-sync, DOM hydration, or object merging.

    interface WasmScope {
        disposed: boolean;
        handle: number;
        name: string;
        apply(
            transaction: WasmScopeTransaction,
            options?: WasmScopeWriteOptions,
        ): boolean;
        bind(options?: WasmScopeBindingOptions): () => void;
        delete(path: string, options?: WasmScopeWriteOptions): boolean;
        dispose(): void;
        get(path: string): unknown;
        getBinary(path: string): Uint8Array<ArrayBufferLike> | undefined;
        onSync(callback: () => void): () => void;
        set(path: string, value: unknown, options?: WasmScopeWriteOptions): boolean;
        setBinary(
            path: string,
            value: BufferSource,
            options?: WasmScopeWriteOptions,
        ): boolean;
        sync(): void;
        watch(
            path: string,
            callback: (update: WasmScopeUpdate) => void,
            options?: WasmScopeWatchOptions,
        ): () => void;
    }
    Index

    Properties

    disposed: boolean

    Whether this wrapper has been disposed.

    handle: number

    Numeric host handle passed to Wasm clients.

    name: string

    Stable scope name exposed over the ABI.

    Methods

    • Disposes ABI bindings without destroying the underlying AngularTS scope.

      Returns void

    • Reads a dot-separated path from the wrapped AngularTS scope.

      Parameters

      • path: string

      Returns unknown

    • Reads a scope path as an owned byte array.

      Parameters

      • path: string

      Returns Uint8Array<ArrayBufferLike> | undefined

    • Registers a callback that runs before this scope syncs.

      Parameters

      • callback: () => void

      Returns () => void

    • Writes a dot-separated path into the wrapped AngularTS scope.

      Parameters

      Returns boolean

    • Writes an owned copy of a byte sequence into a scope path.

      Parameters

      Returns boolean

    • Runs queued Wasm bridge callbacks for this scope.

      Returns void