I have a loading-interceptor who shows up a loading every time I make a http request and it works very well,the loading spinner its full screen, but I made a searchcomponent, that it is an input and every time I write inside the input, it make a http request and get all the data, but the problem is that the loading shows up in full screen and I want that loading have another behaivor in this kind of request, how can I say to my interceptor that when the call is made by the input dont shows up the loading?
//this is the code of my interceptor
@Injectable({
providedIn: 'root'
})
export class LoadinInterceptorService implements HttpInterceptor {
constructor(private spinner:NgxSpinnerService, private router: Router) { }
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
this.router;
this.spinner.show();
return next.handle(req).pipe(
finalize(() => this.spinner.hide())
);
}
}