moff / angular2-ladda

Angular 2 Ladda module
MIT License
97 stars 20 forks source link

[Feature Request] clear spinner on input change #42

Open krechtern opened 5 years ago

krechtern commented 5 years ago

** Current behaviour If a button with [ladda] is clicked, a spinner will be initialized and stored for later use. But if for example the color is dynamic [attr.data-spinner.color]="dynamicColor", the new color is not used because no new spinner will be created.

** Expected behaviour If the input for example the color changes, the old spinner object should be destroyed. This will result in creating a new spinner if the button is clicked.