-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Set button type dynamicaly #15367
Copy link
Copy link
Closed
Labels
P2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workaroundarea: material/buttonfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
Description
Please describe the feature you would like to request.
I'm using MatButton directive as attribute like this:
<button mat-button buttonType="{{button.type}}></button>"
I want to change 'mat-button' directive according to 'button.type', for example if 'button.type' is 'stroked' then 'mat-button' changed to 'mat-stroked-button'. How can to change type of button dynamicaly?
What is the use-case or motivation for this proposal?
Is there anything else we should know?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workaroundarea: material/buttonfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues