I have a simple mat-card that I want to show/hide based on a value. However, *ngIf directive does't seem to work on it.
<mat-card *ngIf="displayNoSignUp">Simple card</mat-card>
Is there a way to do it using a directive on the material components? Or should it be wrapped inside an html div?
Your syntax is correct, and it should work. Check again the value of displayNoSignUp in your component.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With