How to add a loading spinner to an Angular Material button
Step-by-step Guide
2 min readJul 27, 2019
Important Update (April 2022)
Due to the popularity of this article I decided to create the ngx-loading-buttons library. Please check it out and give it a ⭐️ if you find it useful.
Err…
…wouldn’t it be nice if Angular Material had a button with a loading spinner? Like the loading buttons that Semantic UI has.
Instead of ranting I decided to try to code this — and succeeded!
With no further ado, I’ve included the code below.