Ion2FullApp Ionic Template
Buy Ion2FullAppLive PreviewComments
  • What is Ion2FullApp?
  • About Ion2FullApp
  • Set up
  • Code Structure
  • Customize it
  • Data Integration
  • Nifty Stuff
  • Functionalities
    • Wordpress Integration
    • Firebase Integration
    • AdMob
    • App Rate
    • Multi Language
    • Video Playlist
    • Image Picker
    • Twitter Connect
    • Facebook Connect
    • Google Connect
    • Social Sharing
    • Google Maps
    • Call Number
    • Send email
    • Native Storage
  • Troubleshooting
  • Common Questions
Powered by GitBook
On this page
  • Models
  • Services

Data Integration

The key to an evolving app is to create reusable services to manage all the data calls to your backend. Learn how we manage the data in Ion2FullApp Ionic Template.

PreviousCustomize itNextNifty Stuff

Last updated 6 years ago

In this section we will not discuss any backend implementation in particular because as we explained above, there are so many options and flavours when it comes to backend implementations that it turns impossible to provide examples for every option.

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.

Models

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.

To learn more about this, please visit this great post about .

Services

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.

To learn more about this, please visit .

We encourage the usage of models in combination with services for handling data all the way from the backend to the presentation flow.

However, if you want to use Firebase we have some tutorials that can help you.
angular 2 domain models
Angular Tutorial: Learn Angular from scratch step by step