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

Reuse the container elements #12

Open DrColossos opened 9 years ago

DrColossos commented 9 years ago

Every time we call

$loading.update('key', {options});

with different options (especially text), a new wrapper will be appened to the body. We ended up having quite some containers hanging around. Following pull request tries to re-use existing components and only changes user provided options where needed.