mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
test(): update to public navCtrl convention
This commit is contained in:
@ -40,20 +40,20 @@ import { Platform } from '../../platform/platform';
|
||||
* @Component({...})
|
||||
* export class MyPage {
|
||||
*
|
||||
* constructor(private menu: MenuController) {
|
||||
* constructor(public menuCtrl: MenuController) {
|
||||
*
|
||||
* }
|
||||
*
|
||||
* openMenu() {
|
||||
* this.menu.open();
|
||||
* this.menuCtrl.open();
|
||||
* }
|
||||
*
|
||||
* closeMenu() {
|
||||
* this.menu.close();
|
||||
* this.menuCtrl.close();
|
||||
* }
|
||||
*
|
||||
* toggleMenu() {
|
||||
* this.menu.toggle();
|
||||
* this.menuCtrl.toggle();
|
||||
* }
|
||||
*
|
||||
* }
|
||||
|
Reference in New Issue
Block a user