This is a solution to the REST Countries API with color theme switcher challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- See all countries from the API on the homepage
- Search for a country using an
input
field - Filter countries by region
- Click on a country to see more detailed information on a separate page
- Click through to the border countries on the detail page
- Toggle the color scheme between light and dark mode (optional)
- Solution URL: Github
- Live Site URL: GitHub Pages
This time I started by generating almost every component, service, and route at the beginning. The design is quite simple so it was easy to forecast what was needed. Also, I got a bit lazy and threw most of my styles (mixins, variables, atoms, etc) into just the one stylesheet. shrug
- Angular
I wanted another chance from scratch on using pure reactive techniques (vs imperative) in my code. I succeeded in getting everything to work without any direct subscriptions.
However, I had a number of issues getting things like combineLatest
to work with BehaviorSubject
s. The default value in a BehaviorSubject
wasnt emitting when it was referenced in an Async pipe.
Honestly, I met my goal of fiddling with an API purely reactively and I started getting lazy at the end. I just wanted to wrap the project up.