Design: Put a spinner in a button?

I have an app with a login form: username, password, “Login” button. I’m still in development so until now I just put a ion-spinner under the form when I clicked “Login”. But now I am starting to polish it and wand to make it better.

Is there a (good) way to put a ion-spinner in a button?

You could also use a spinner in $ionicLoading overlay.

i built a little but not that pretty directive for that:

1 Like

Ah that’s nice. I’ll look at your code. I don’t want to replace the button but change it, but maybe I can steal some nice quirks from yours. Thanks.