ViewOutlet class

Module @runic-artifex/angular in @runic-artifex/angular 0.23.0

class ViewOutlet<R extends PageReference = PageReference>

Headless host for a selected logical .NET View. A changed reference remounts its component, and the projected content renders while there is no reference. A kind without a component renders the missing template, for example localized text. Without it, a development build (isDevMode()) renders an English alert, and a production build renders nothing and reports the kind (installErrorReporting, onBridgeDiagnostic):

<runic-view-outlet [content]="state()?.main" [registry]="pages" [missing]="missingView" />
<ng-template #missingView let-page><p role="alert">{{ missingText(page.kind) }}</p></ng-template>

The element keeps Angular's prefix convention: <runic-view-outlet [content]="…" [registry]="…" />.

Constructors

constructor

constructor();

No documentation.

Properties

content

readonly content: InputSignal<R | null | undefined>;

No documentation.

registry

readonly registry: InputSignal<ViewRegistry<R>>;

No documentation.

missing

readonly missing: InputSignal<TemplateRef<ViewOutletMissingContext<R>> | undefined>;

Renders a reference whose kind has no registered component instead of the development alert.

error

readonly error: import("@angular/core").WritableSignal<string | undefined>;

No documentation.

ɵfac

static ɵfac: i0.ɵɵFactoryDeclaration<ViewOutlet<any>, never>;

No documentation.

ɵcmp

static ɵcmp: i0.ɵɵComponentDeclaration<ViewOutlet<any>, "runic-view-outlet", never, {
    "content": {
        "alias": "content";
        "required": false;
        "isSignal": true;
    };
    "registry": {
        "alias": "registry";
        "required": true;
        "isSignal": true;
    };
    "missing": {
        "alias": "missing";
        "required": false;
        "isSignal": true;
    };
}, {}, never, [
    "*"
], true, never>;

No documentation.