[hidden] property doesn't work in Buttons
Hide the button when the [hidden] property is true
When the property is true it is not hiding the button
http://plnkr.co/edit/qUHhZElRoOXs2xKlYjyb
I want to have just one button to show or hide a card content
"@angular/core": "^4.0.0",
"@angular/material": "^2.0.0-beta.8",
Chrome Browser
Just use *ngIf
The hidden attribute sets display: none through the user agent styles, which makes it really low specificity. Material sets buttons to display: inline-block through a class selector which ends up overriding the native styling. You can either use *ngIf, or add this somewhere in your stylesheet to guarantee that it can't be overridden:
[hidden] {
display: none !important;
}
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._