Result object returned by Angular code generation classes. Contains the generated template, optional TypeScript code, and metadata about the generation process.

Constructors

Properties

CodeOutput?: string

Optional TypeScript code that will be injected into the class definition of the Angular component. Useful for adding additional methods, properties, or lifecycle hooks to the component.

Reference to the generator component that produced this output. Used for accessing component properties later for imports and module configuration.

ErrorMessage?: string

If generation failed, contains the error message describing what went wrong

Success: boolean

Indicates whether the generation process completed successfully

TemplateOutput: string

The generated HTML/Angular template code that will be embedded in the final Angular component template