Here's a small project, I had as an assignment which gives a brief idea about Observable, Subject and BehaviorSubject, also some of the commonly used rxjs operators.
This just has 2 functions which gives you an idea about how to create an observable and what exactly next(), error() and complete() does
This is a little a example to give a basic idea of what observable, subject and behaviorSubject is and how they differ from one another
Here I have used SWAPI (Star Wars API) and Check Norris Joke API to give some idea of how we can combine these operators to get our desired results while working on live projects
FYI: I only had like 4 hours to develop this, so sorry if I missed something important or if something isn't correct.
- Prerequisites
- NodeJS
- Angular CLI
- Clone this repo and run
npm i
and then
ng serve
And Voila 🎉 ! This will hopefully be running on port 4200 and you can check the application out and make changes and test things yourself 👍