We will focus instead on the app’s side of the problem, how to handle data calls, as this works the same and is independent on the way you implement the backend. We will talk about models and services and how they work together to achieve this.
Domain models are important for defining and enforcing business logic in applications and are especially relevant as apps become larger and more people work on them.
At the same time, it is important that we keep our applications DRY and maintainable by moving logic out of components themselves and into separate classes (models) that can be called upon. A modular approach such as this makes our app's business logic reusable.
As you may know, ionic 3 is implemented on top of angular 5 and it borrows it’s best parts. Angular 5 enables you to create multiple reusable data services and inject them in the components that need them.
Refactoring data access to a separate service keeps the component lean and focused on supporting the view. It also makes it easier to unit test the component with a mock service.