How to do it...

Here are the instructions:

  1. Create a new app using the blank template and go into the project folder:
$ ionic start PlatformStylesApp blank
$ cd PlatformStylesApp
  1. Open the ./src/app/app.module.ts file and replace the entire body with the following:
import { NgModule } from '@angular/core'; import { IonicApp, IonicModule } from 'ionic-angular'; import { MyApp } from './app.component'; import { HomePage } from '../pages/home/home'; @NgModule({ declarations: [ MyApp, HomePage ], imports: [ IonicModule.forRoot(MyApp, { backButtonText: 'Go Back', iconMode: 'md', modalEnter: 'modal-slide-in', modalLeave: 'modal-slide-out', tabbarPlacement: 'bottom', pageTransition: 'ios', }) ], bootstrap: [IonicApp], entryComponents: [ MyApp, ...

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.