md progress circular in md button
I wanted to show the nice spinner while waiting the response from the server. Luckily, Angular Material has nice looking spinner, md-progress-circular
. I wanted to show this in the button when user submits the form.
The problem is the spinner takes space and expands the button. So I needed to figure out the way to keep the button size even when the spinner is spinning in the button. Anyway, here is the demo on codepen!
See the Pen Progress Circular in md-button by Kohei Arai (@1kohei1) on CodePen.