Бывает что нужно показать Alert. Чтобы в Ionic показать оповещение, нужно написать это:
Изменим наш код:
home.ts:

Код:
import { Component } from '@angular/core';
import { AlertController } from 'ionic-angular';

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {
  constructor(public alertCtrl: AlertController) {
  }

  async presentAlert() {
    const alert = await this.alertCtrl.create({
      header: 'Оповещение',
      message: 'Мой первый App, который показывает оповещение!',
      buttons: ['OK']
    });

    await alert.present();
  }
}

home.html:

Код:
<ion-header>
  <ion-toolbar>
    <ion-title>
      Оповещение (alert)
    </ion-title>
  </ion-toolbar>
</ion-header>

<ion-content padding>
  <button ion-button (click)="presentAlert()">Показать оповещение!</button>
</ion-content>

Результат:
https://i.ibb.co/QQ7p4sW/ionic-13-01-09-07-2021-min.jpg