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....
forkJoin vs combineLatest
Learning RxJS is quite challenging and it is undoubtedly the great tool for front-end developers. We cannot grasp entire RxJS operators in one go, but we may encounter some operators for our use cases. One such operators are forkJoin and combineLatest. forkJoin is a special operator from RxJx that let’s you combine / accept...