How to do it...

Here are the instructions:

  1. Create a new Navigation app using the blank template, as shown, and go into the Navigation folder:
$ ionic start Navigation blank
$ cd Navigation
  1. Edit ./src/app/app.module.ts with the following code:
import { BrowserModule } from '@angular/platform-browser';import { ErrorHandler, NgModule } from '@angular/core';import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';import { SplashScreen } from '@ionic-native/splash-screen';import { StatusBar } from '@ionic-native/status-bar';import { MyApp } from './app.component';import { HomePage } from '../pages/home/home';import { OtherPage } from '../pages/otherPage/otherPage';@NgModule({  declarations: [    MyApp,    HomePage,    OtherPage  ], imports: ...

Get Ionic Cookbook - Third 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.