Exposes a component by combining it with additional configuration details.
API
declare function exposeComponent<
T extends {
new (...args: any[]): any;
},
>(
component: T,
config: _types.Prettify <
Omit <
ExposedComponent <T>,
"component" | "name" | "props"
> & {
input?: ComponentPropSchema <T>;
}
>,
): ExposedComponent <T>;exposeComponent
ExposedComponent<T>@paramcomponent:TThe Angular component to be exposed.
@paramconfig:_types.Prettify<Omit<ExposedComponent<T>, 'component' | 'name' | 'props'> & {
input?: ComponentPropSchema<T>;
}>The configuration object for the component, excluding the component itself.
@typeT{
new (...args: any[]): any;
}@returnsExposedComponent<T>