79538756

Date: 2025-03-27 11:55:53
Score: 3
Natty:
Report link

This issue may occur if there is no value assigned to the key used in the HTML template. To fix this, use the ternary (safe navigation) operator to handle undefined values.

Example: Before: <p *ngIf="someKey.Value"> Some Text

After: <p *ngIf="someKey?.Value"> Some Text

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Devaprakash M