Here is what I currently have in my code:
<p *ngIf="model.something.satisfy"> Yes </p>
<p *ngIf="!model.something.satisfy"> {{model.something.comments}} </p>
The issue arises in the second line with the error message "TypeError: Cannot read property 'satisfy' of undefined."
I have attempted the following solutions:
- *ngIf="!model.something?.satisfy
- <div class="col-sm-10 offset-1" *ngIf="model.something>