AngularTS
    Preparing search index...

    Interface WasmScopeAbi

    Language-neutral AngularTS scope ABI contract for raw Wasm clients.

    The ABI exchanges strings and JSON-compatible values through guest linear memory. Guest modules provide ng_abi_alloc and ng_abi_free; AngularTS uses those exports whenever it needs to place callback or return payloads in guest memory.

    interface WasmScopeAbi {
        disposed: boolean;
        imports: WasmScopeAbiImportObject;
        attach(exports: WebAssembly.Exports): void;
        createScope(scope: Scope, options?: WasmScopeOptions): WasmScope;
        dispose(): void;
        getScope(reference: WasmScopeReference): WasmScope | undefined;
        takeView(handle: number): Node;
    }
    Index

    Properties

    disposed: boolean

    True after this ABI and all of its bindings have been disposed.

    Import object passed to WebAssembly.instantiate.

    Methods

    • Attaches and validates guest exports after instantiation.

      Parameters

      • exports: WebAssembly.Exports

      Returns void

    • Disposes every scope, watch, and result buffer owned by this ABI.

      Returns void

    • Consumes a guest-created node for a component or directive view.

      Parameters

      • handle: number

      Returns Node