title: Can't configure ngx-ui-loader from app.module.ts file
body: <p>I am using the <a href="https://www.npmjs.com/package/ngx-ui-loader" rel="nofollow noreferrer">ngx ui loader</a> for my angular 7 project.</p>
  
  <p>In the <strong>app.module.ts</strong> file, I have imported the ngx-ui-loader package like this:-</p>
  
  <pre><code>import { NgxUiLoaderModule, NgxUiLoaderHttpModule, NgxUiLoaderConfig, SPINNER, POSITION, PB_DIRECTION } from  'ngx-ui-loader';
  </code></pre>
  
  <p>Then I created a constant like this to define the configuration parameters:-</p>
  
  <pre><code>const ngxUiLoaderConfig: NgxUiLoaderConfig = {
    bgsColor: 'red',
    bgsPosition: POSITION.bottomCenter,
    bgsSize: 40,
    bgsType: SPINNER.rectangleBounce,
    pbDirection: PB_DIRECTION.leftToRight, // progress bar direction
    pbThickness: 5, // progress bar thickness
  };
  </code></pre>
  
  <p>Then added the <code>NgxUiLoaderModule.forRoot(ngxUiLoaderConfig)</code> in the imports array of the <code>@NgModule</code></p>
  
  <p>In the <strong>app.component.html</strong> file, I have added the <code>&lt;ngx-ui-loader&gt;&lt;/ngx-ui-loader&gt;</code> tag just above the <code>&lt;router-outlet&gt;&lt;/router-outlet&gt;</code> tag.</p>
  
  <p>In the <strong>app.component.ts</strong> file, I kept the following code</p>
  
  <pre><code>import { NgxUiLoaderService } from 'ngx-ui-loader';
  
  export class AppComponent implements OnInit{
    title = 'medico';
    constructor(private ngxService: NgxUiLoaderService) { }
    ngOnInit() {
      this.ngxService.start(); // start foreground spinner of the master loader with 'default' taskId
      // Stop the foreground loading after 5s
      setTimeout(() =&gt; {
        this.ngxService.stop(); // stop foreground spinner of the master loader with 'default' taskId
      }, 300);
    }
  }
  </code></pre>
  
  <p>When I am running the page, I can see the loader. The issue is, even after changing the configuration data in the app.module.ts, the loader property doesn't change.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Note: Please don't give suggestions like "why don't you use other loader like http-loader, etc". The question is about why the ngx ui loader isn't working as expected.</p>