Angular: component contract
ng_component_infoGet the public contract of an Angular component or directive directly from .ts or .html files—inputs, outputs, class members, and decorator metadata—without needing an ngserver.
Instructions
Public contract of a component or directive: inputs, outputs, class members, decorator metadata. Accepts .ts or .html. Reads the source; ngserver is not needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the component (.ts) or to its template (.html) |