constructor(private _loadingService: TdLoadingService, viewContainerRef: ViewContainerRef) {
    let options: ILoadingOptions = {
      name: 'stringName',
      type: LoadingType.Circular,
    };
    this._loadingService.createOverlayComponent(options, viewContainerRef);

    let options2: ILoadingOptions = {
      name: 'stringName2',
      type: LoadingType.Linear,
    };
    this._loadingService.createOverlayComponent(options2, viewContainerRef);

  };
 }).catch((errors: any[]) => {
   this._loadingService.resolve('activate.success');
   console.log('errors???', errors);
   if (errors[0].code === 'invalid_args') {
     this._snackBar.open(errors[0].fields[0].captcha[0], 'Error', {
       duration: 5000,
     });
   }
 }).then(() => {
 ngOnInit() {
   this._loadingService.register('activate.success');
   this.code = this._route.snapshot.params['code'];
   this._http.request('/ajax/auth/activate/' + this.code, {
     method: 'PUT',
   }).then((result) => {
     this._loadingService.resolve('activate.success');
   }).catch((errors: any[]) => {
     this._loadingService.resolve('activate.success');
     console.log('errors???', errors);
     if (errors[0].code === 'invalid_args') {
       this._snackBar.open(errors[0].fields[0].captcha[0], 'Error', {
         duration: 5000,
       });
     }
   }).then(() => {
   });
 }
 }).then((result) => {
   this._loadingService.resolve('activate.success');
 }).catch((errors: any[]) => {
 setTimeout(() => {
   this._loadingService.resolve();
 }, 20*1000);
 ngOnInit(): void {
   this._loadingService.register();
   setTimeout(() => {
     this._loadingService.resolve();
   }, 20*1000);
 }
 TimerWrapper.setTimeout(() => {  
   this._loadingService.resolve('stringName2');
 }, 4000)
 start_linear_overlay(event) {
   this._loadingService.register('stringName2');
   TimerWrapper.setTimeout(() => {  
     this._loadingService.resolve('stringName2');
   }, 4000)
 };
 stop_circular_div(event) {
   this._loadingService.resolve('circularLoaderDiv');
 };
 start_circular_div(event) {
   this._loadingService.register('circularLoaderDiv');
 };