Integration

Now that we have the required API services available, we will be creating the required views to represent that data.

When we scaffold the app, a page named home will be created for us. But since, in our app, everything starts with the authentication, we will first generate a login page. Then we will make that the first page of the app. To generate a new page, run the following:

ionic generate page login

Next, we need to update the page reference in riderr/src/app/app.module.ts. Update the @NgModule as shown:

import { NgModule, ErrorHandler } from '@angular/core'; import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular'; import { MyApp } from './app.component'; import { HomePage } from '../pages/home/home';  ...

Get Learning Ionic - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.