MCPcopy Create free account
hub / github.com/angular/components / throwUnknownPortalTypeError

Function throwUnknownPortalTypeError

src/cdk/portal/portal-errors.ts:37–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 * @docs-private
36 */
37export function throwUnknownPortalTypeError() {
38 throw Error(
39 'Attempting to attach an unknown Portal type. BasePortalOutlet accepts either ' +
40 'a ComponentPortal or a TemplatePortal.',
41 );
42}
43
44/**
45 * Throws an exception when attempting to attach a portal to a null host.

Callers 1

attachFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected