For an in-depth version of this tutorial check Ionic 5/Angular and RxJS Observables: Building an HTTP Service to Communicate with A REST API
In this Ionic 5 tutorial we will cover how to use the HTTP module to retrieve data or consume an API from some remote server.
As you know, when building apps, you can either store data locally with some SQLite database or local storage, use a remote server to store your data or use no data storage at all (in rare cases).
TABLE OF CONTENTS
This post is a part of many Ionic 2+ tutorials
Expand this for more details
- Ionic 3-Create and build first project or application (Android and iOS)
- Ionic 2/Ionic 3-Adding Cordova Android Platform
- Ionic 2/Ionic 3-Create, Generate and Add Pages
- Ionic CLI v3-start command templates and options
- Ionic 3/Ionic 2 Modals
- Understanding Ionic 2 Navigation
- Learn Ionic 3-what is a component and page? and how to use them?
- Ionic 3-Lazy Loading Modules
- Theming and Styling Ionic 2 Apps
- Ionic Native 3.x
- Developing Ionic Apps Entirely in The Browser-Mocking SQLite Native Plugin
- Playing videos with Ionic 2/Ionic 3 and Cordova Video Player plugin
- Using PouchDB and SQLite with Ionic 3: A CRUD Example
- Ionic CLI v3-start command templates and options
- Ionic 3-Create a Nearby Restaurants App with Geolocation Plugin, Google Maps and Places API
- Ionic 3-Create a Nearby Restaurants App with Geolocation Plugin, Google Maps and Places API
- Learn Ionic 2+ Properly (A Study/Learning Guide) </details> In this tutorial we'll cover the second case by building a simple Ionic 5 app based on Angular which connects to a remote server and retrieve data then display it using an Ionic List component. We will also see how to use the Reactive library RxJS to work with Observables. We are not going to reinvent the wheel by building a REST API server but instead we are going to use JSONPlaceholder a fake online REST API for testing and prototyping. Now let's get started.
If this was helpful for you, you need more details, the code is not properly working for you or maybe do you need another tutorial? again please feel free to reach me via the comments box below or twitter (@techiediaries). I will be more than happy to help you. I also expect some help from you, you can share my content with your social media friends. Feel free to send me an email ([email protected]) and to subscribe to my RSS feed.