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 - Ionic Tutorial
From the course: Ionic 4.0 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Overview of Ionic UI components5m 35s
-
(Locked)
Designing the home page with cards8m 16s
-
(Locked)
Generating services4m 40s
-
(Locked)
Consuming REST APIs4m 16s
-
(Locked)
Consuming REST APIs: Implementing methods3m 3s
-
(Locked)
Creating a data model and interface4m 6s
-
(Locked)
Using a data model interface3m 54s
-
(Locked)
Finalizing the home page design10m 2s
-
-
-
-
-
-