We undoubtedly use safe navigation in string interpolation ({{}}
) to safely navigate values in a nested object with checking nulls or undefined.
I have a question that, is it okay to use safe navigation also for:
ngIf
ngFor
ngModel
ngClass
- and other html property bindings like
[disabled]
,[style]
, etc.
For which scenarios should I use and not?