Perform the following instructions:
- Create a new MyComponent app using the blank template, as shown, and go into the MyComponent folder:
$ ionic start MyComponent blank $ cd MyComponent
- Open the ./src/pages/home/home.html file and replace the content with the following code:
<ion-header> <ion-navbar> <ion-title> Pizza App </ion-title> </ion-navbar></ion-header><ion-content padding> <ion-card> <ion-card-header> App Homepage </ion-card-header> <ion-card-content> Please start to order your pizza now! </ion-card-content> </ion-card> <my-component></my-component></ion-content>
This is your root page containing <my-component>, which will be defined later.
- Open ./app/pages/home/home.ts for editing globally with the following ...