From the course: Ionic 4.0 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Creating a data model and interface

Creating a data model and interface - Ionic Tutorial

From the course: Ionic 4.0 Essential Training

Start my 1-month free trial

Creating a data model and interface

- [Instructor] In this video we're going to round up our run application. So far, we've made a lot of positive progress. We've gone ahead to create the base template for what we want our homepage to look like. We then went ahead to create a service called Activity service and even implemented two methods with it. Now before we start working on our application and finalizing it. There's something I would like us to do. First, let's have a look at that data that our APR returns. If we take this data, and we open it up on a JSON viewer and you can use any JSON viewer you like but I'm just going to use the JSON view of the stack with the link on screen and I just copy that here, paste it. Try to format it and go to the viewer one more time. What we will see is that every one of these objects that is being represented as part of our JSON array has certain properties as we've already seen in the past. Now the right thing to do would be to go and create a TypeScript interface for this. If…

Contents