W3cubDocs

/Angular

ComponentMirror

interface

An interface that describes the subset of component metadata that can be retrieved using the reflectComponentType function.

interface ComponentMirror<C> {
  selector: string
  type: Type<C>
  inputs: ReadonlyArray<{...}
  outputs: ReadonlyArray<{...}
  ngContentSelectors: ReadonlyArray<string>
  isStandalone: boolean
}

Properties

Property Description
selector: string Read-Only

The component's HTML selector.

type: Type<C> Read-Only

The type of component the factory will create.

inputs: ReadonlyArray<{ readonly propName: string; readonly templateName: string; readonly transform?: (value: any) => any; }> Read-Only

The inputs of the component.

outputs: ReadonlyArray<{ readonly propName: string; readonly templateName: string; }> Read-Only

The outputs of the component.

ngContentSelectors: ReadonlyArray<string> Read-Only

Selector for all elements in the component.

isStandalone: boolean Read-Only

Whether this component is marked as standalone. Note: an extra flag, not present in ComponentFactory.

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/ComponentMirror