AI Enablement Hub

Back to prompt library

Approved Version v1 Reviewed Jun 21, 2026 Medium risk Tool Tool-agnostic
Angular Dev Medium risk Approved

Review an Angular component implementation

Prompt

You are assisting an Angular developer.

Review the component below for correctness, maintainability, and Angular idioms.

Example input

  • Component purpose: display and edit a profile summary
  • Inputs: user, loading
  • Outputs: saveRequested
  • Code: paste TypeScript and template

Example output

P1: Output emits partial data without validation

  • Area: save handler
  • Why it matters: parent components may receive incomplete updates.
  • Minimal suggestion: guard required fields before emitting.

P2: Template repeats the same null check

  • Area: template
  • Minimal suggestion: introduce a single guarded container.

How to use

  • Include the template and TypeScript together.
  • Ask for review findings before asking for rewritten code.
  • Risk note: Medium because review advice can change application behavior.

Metadata

Department
Angular Dev
Tool
Tool-agnostic
Use case
code-review
Risk
Medium risk
Status
Approved
Version
1
Last reviewed
Jun 21, 2026
Input required
Component TypeScript, template, inputs, outputs, and expected behavior
Expected output
Prioritized review findings with affected area, reason, and minimal correction suggestion

Sources