mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(toast-controller): use const instead of let (#12962)
This commit is contained in:
committed by
Ken Sodemann
parent
66faa1d959
commit
200fa935b8
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user