diff --git a/src/components/toast/toast-controller.ts b/src/components/toast/toast-controller.ts index f482cbcae1..c853916493 100644 --- a/src/components/toast/toast-controller.ts +++ b/src/components/toast/toast-controller.ts @@ -39,12 +39,10 @@ import { ToastOptions } from './toast-options'; * ```ts * import { ToastController } from 'ionic-angular'; * - * constructor(private toastCtrl: ToastController) { - * - * } + * constructor(public toastCtrl: ToastController) { } * * presentToast() { - * let toast = this.toastCtrl.create({ + * const toast = this.toastCtrl.create({ * message: 'User was added successfully', * duration: 3000, * position: 'top'