How do you put a spinner on a button?
Typically, you'll want to activate the spinner as soon as the button is clicked on. To do this, you simply add the class of . button--loading , for example: const theButton = document.
How to add a loading spinner to an angular material button?
Use the ngx-loading-buttons library
This project is a lightweight Angular library specifically created to add a loading spinner to your Angular Material buttons. The first step is to install it, like this. This will download the library and also add a small CSS file to your angular. json file.