Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
175 views
in Technique[技术] by (71.8m points)

angular - What Module is used for the button's looks?

Which module does the looks of the button (red mark selection )belong to in order to get the good looks?

Thank you!

enter image description here

question from:https://stackoverflow.com/questions/65927547/what-module-is-used-for-the-buttons-looks

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You need to import MatButtonModule see API reference for Angular Material button

Then in your template:

<button mat-button color="primary">Primary</button>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...