Toast
http://ionicframework.com/docs/v2/components/#toast
Toast用来显示一个通知。一般情况下Toast会显示一小段时间后自动消失
更多内容请查看API文档。
基本用法
import { ToastController } from 'ionic-angular';
export class MyPage {
constructor(public toastCtrl: ToastController) {
}
presentToast() {
let toast = this.toastCtrl.create({
message: 'User was added successfully',
duration: 3000
});
toast.present();
}
}