import { Injectable } from '@angular/core';

@Injectable()
export class ProgressBarService {

  protected visible = true;

  constructor() { }

  setVisible() {
    this.visible = true;
  }

  setHidden() {
    this.visible = false;
  }
}

import { Injectable } from '@angular/core';

@Injectable()
export class ProgressBarService {

  protected visible = false;

  constructor() { }

  setVisible() {
    this.visible = true;
  }

  setHidden() {
    this.visible = false;
  }
}

Change default state to invisible
Change default state to invisible
