docs(toast-controller): use const instead of let (#12962)

This commit is contained in:
Daniel Sogl
2017-09-26 04:24:19 +02:00
committed by Ken Sodemann
parent 66faa1d959
commit 200fa935b8

View File

@@ -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'