How to do it...

Here are the instructions to create example app:

  1. Create a new LeftRightMenu app using the sidemenu template, as shown, and go to the LeftRightMenu folder:
$ ionic start LeftRightMenu sidemenu
$ cd LeftRightMenu
  1. Check that your app folder structure is similar to the following:
  1. Edit ./src/app/app.component.ts and replace it with the following code:
import { Component, ViewChild } from '@angular/core';import { Nav, Platform } from 'ionic-angular';import { StatusBar } from '@ionic-native/status-bar';import { SplashScreen } from '@ionic-native/splash-screen';import { HomePage } from '../pages/home/home';import { ListPage } ...

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.