Seeker with throttle Angular 6


I have armed a search engine and I want the search engine when I write not to pull a search with every letter that I am writing even when I have not finished typing what I am looking for. I know I can use the throttle or throttletime method (I do not know what the difference between these two is). But I do not know how to use them in my code.

It is an application in Angular 6. And this.spotify is a service that connects with the api of spotify. And the code portion is of a component that has this service injected.

    .subscribe( (data:any) => {
      this.contentSearch = data;


asked by GFonzii 24.11.2018 в 16:34

0 answers