Observe the following instructions:
- Create a new SharedService app using the blank template as shown and go to the SharedService folder:
$ ionic start SharedService blank $ cd SharedService
- You will need to make several changes in the directory because you have two pages and a common service for both. Let's start by modifying the ./src/app/app.component.ts file so that the rootPage is pointing to Page1:
import { Component } from '@angular/core';import { Platform } from 'ionic-angular';import { StatusBar } from '@ionic-native/status-bar';import { SplashScreen } from '@ionic-native/splash-screen';import { Page1 } from '../pages/page1/page1';@Component({ templateUrl: 'app.html'})export class MyApp { rootPage:any = Page1; ...