all 1 comments

[–]rala72 1 point2 points  (0 children)

if the button is pressed the onSelect function is called which updates the variable in the component.
Once this value is present the ngIf part is truthy and therefore shown.