Notes
- Mat-button
- Mat-raised button – this sometimes overlaps other controls, so a CSS fix is needed. I put these at the bottom of forms, with a mat-divider separating these from other controls.
- Mat-stroked-button – looks like a button. has a ripple effect.
Sample Code
1 | <button mat-stroked-button |
When clicked this navigates to the /policyTypeCode page.
Another sample
1 | <button |
When clicked this calls the savePolicyTypeCode function.
1 | <button mat-button color="primary" |
Here’s a button with no text. But rather it has an icon. There’s also a tooltip.
Here’s a link to a page that shows the list of icons: https://fonts.google.com/icons