darthwade / angular-loading

Angular directive that lets you to prevent user interaction with part of the page and display loading/busy indicator (spinner based on spin.js)
http://embed.plnkr.co/XLL3li/preview
MIT License
96 stars 49 forks source link

removing the element and appending it back in update function #23

Open rickyroy44 opened 7 years ago

rickyroy44 commented 7 years ago

append is causing issues when the text attribute is made dynamic with angular binding from controller. Multiple elements of dw-loading class gets added to DOM. So removing the element first and then appending it in update function.