Typed Outlet
Transforms a union type representing dynamic content into a discriminated structure that enables precise rendering via Angular’s built-in structural directives — directly in the template.
Import
Usage
Purpose
Use typedOutlet
when your input may be a component type (Type), a template (TemplateRef), a string, or null/undefined, and you want to narrow its type within the template to render it using *ngComponentOutlet, *ngTemplateOutlet, or text interpolation accordingly.