AngularTS
    Preparing search index...

    Class WasmScope

    Host-side wrapper around 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.

    Index

    Constructors

    Properties

    Host ABI that owns this handle.

    handle: number

    Numeric host handle passed to Wasm clients.

    name: string

    Stable scope name exposed over the ABI.

    scope: Scope

    Wrapped AngularTS scope.

    Methods

    • Binds this scope to Wasm lifecycle exports and optional watched paths.

      This is the host-to-guest side of the ABI: AngularTS allocates guest memory for callback payloads, invokes the exported callback, and frees memory after the callback returns.

      Parameters

      Returns () => void

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

      Parameters

      • path: string

      Returns boolean

    • 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

    • Returns whether the wrapper has been disposed.

      Returns boolean

    • Registers a callback that runs before this scope syncs.

      Generated Wasm bridges use this to sync Rust-owned public fields back onto AngularTS controller wrappers when Rust async code calls WasmScope::sync.

      Parameters

      • callback: () => void

      Returns () => void

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

      Parameters

      • path: string
      • value: unknown

      Returns boolean

    • Runs queued Wasm bridge callbacks for this scope.

      Returns void

    • Watches one scope path and calls callback when AngularTS observes a change.

      The returned function removes only this watch registration.

      Parameters

      Returns () => void