Project holding the components.
Component decorators, i18n names, plain elements.
Optionalindex: DirectiveIndexShared directive index; built from project when omitted.
Inspects the template of one component class.
The report, or undefined when the class has no template.
Inspects the templates behind a file: the owners of an .html template,
or every component declared in a .ts file (optionally one class).
.html template or .ts file.
OptionalclassName: stringOnly inspect this class.
One report per component; empty when the file holds no template.
Inspects component templates of a ts-morph project.
Remarks
Project-level companion to inspectTemplate: loads a component's template (inline or
templateUrl), inspects it, maps offsets to file positions and resolves elements and pipes to the components, directives and pipes declared in the project (via DirectiveIndex).Example