This Ionic Angular app retrieves and displays details of a random country using the RESTCountries API.
Built in the context of the article I built the same app with Flutter, React Native, and Ionic
https://fmmagalhaes.github.io/random-country-ionic-angular
- Run in the browser with
ionic serve
- Run in a mobile device with
ionic capacitor run
![](https://private-user-images.githubusercontent.com/8866496/326589063-257cf930-5b13-4b9d-95d4-17699c438cdf.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5NDA2NTksIm5iZiI6MTcyMDk0MDM1OSwicGF0aCI6Ii84ODY2NDk2LzMyNjU4OTA2My0yNTdjZjkzMC01YjEzLTRiOWQtOTVkNC0xNzY5OWM0MzhjZGYuanBnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTRUMDY1OTE5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2VhYjA0ZmFiYWUxNmY0NzFmNDEyYTdiOWVmNGY0YTg4NjNmMmI1NTVlNzNhMDgzMjA0YTcyYWE3NGQ0ZGQ1NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.h_xqc909_ZGf8lazO4K4E6UH7tloy5VpK4ddowNpAO8)
The web version of the app was deployed to Github Pages using angular-cli-ghpages
ng add angular-cli-ghpages
ng deploy --dir=www --base-href=/random-country-ionic-angular/