ngx-spinner is not hiding after time out. It is showing for infinite time
In app.component.ts
import { NgxSpinnerService } from 'ngx-spinner';
constructor(private spinner: NgxSpinnerService) {}
ngOnInit(){
this.spinner.show();
setTimeout(() => {
this.spinner.hide();
}, 5000);
}
In app.component.html
<ngx-spinner> </ngx-spinner>