Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. const progressBar: HTMLElement = document.querySelector('.progress_bar');
  2.  
  3. let width = 0;
  4. this.zone.runOutsideAngular(() => {
  5. const widthInterval = setInterval(() => {
  6. width++;
  7. progressBar.style.width = `${width}%`;
  8.  
  9. if (width === 100) {
  10. clearInterval(widthInterval);
  11. }
  12. });
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement