There are plenty of options available in Angular world to implement TypeAhead feature for your project, such as; Angular Material Autocomplete (https://material.angular.io/components/autocomplete/examples) NG Bootstrap Typeahead (https://ng-bootstrap.github.io/#/components/typeahead/examples) Prime-Ng (https://www.primefaces.org/primeng/#/autocomplete) Although, there is no need to reinvent the wheel here, still a simple analysis on how a type ahead works in the above libraries will help...
Make sequence of HTTP / API request using mergeMap and forkJoin
Otherwise known as chaining multiple Observables / API. In the real world scenario, we always face a situation where an id of a data depends on previously emitted value. To be precise, let’s assume we need to fetch userId using only by username and sequentially fetch all his/her articles or posts using the userId....