Reputation: 77
I am using Angular 12 and I've created a button component which will contain a button element. I also know how to pass data using @Input, Output etc ... button what I need to do is to have something like Material UI for Angular does:
If I have this:
<button></button>
How can I wire the color class without using ngClass or Class but like this:
<button color="myclass"></button> ?
Upvotes: 0
Views: 1350