ng2-slim-loading-bar not working in angular 2
<p>I implement slim loding progress bar in Angular 2 but it is not working.I set it in click button when I click it nothing happen.So please help me.</p>

<p><strong>component.ts</strong></p>

<pre><code>import { Component } from '@angular/core';
import {SlimLoadingBarService} from 'ng2-slim-loading-bar';
@Component({
  selector:'customers',
  pipes: [],
  providers: [SlimLoadingBarService],
  styles: [],
  template: `&lt;router-outlet&gt;&lt;/router-outlet&gt;`,
 })

  export class Customers{

  constructor(private  slimLoader:SlimLoadingBarService){}

  gotoDetails():void{
   this.slimLoader.start(() =&gt; {
            console.log('Loading complete');
        });
   }


}
</code></pre>

<p>when i call <strong>gotoDetails()</strong> nothing happened and i do not know what is the problem?</p>