Migrating a promise-based Ionic searchbar example to use rxjs and Observables

Опубликовано: 15 Октябрь 2024
на канале: Jorge Vergara
230
13

I'm in the process of improving my rxjs skills, for that I'm going through all my code samples, and migrating them from being promise-based to using Observables.

The goal is to learn enough rxjs operators where I'm able to be in the point where I never need to subscribe to my Observables, and just stream them like that throughout the application.

In this example, I take on a search bar component built using Ionic and Firebase, where I was getting the data from the database as a Promise, and I transform it to be fully Observable based.

Get the full source code here: https://github.com/javebratt/searchbar