mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
Fix CanViews to ViewCans in Nav Guard section
This commit is contained in:
@ -252,7 +252,7 @@ import { ViewController } from './view-controller';
|
||||
* .catch(()=> console.log('should I stay or should I go now'))
|
||||
* }
|
||||
*
|
||||
* ionCanViewLeave(): boolean{
|
||||
* ionViewCanLeave(): boolean{
|
||||
* // here we can either return true or false
|
||||
* // depending on if we want to leave this view
|
||||
* if(isValid(randomValue)){
|
||||
@ -284,7 +284,7 @@ import { ViewController } from './view-controller';
|
||||
* constructor(
|
||||
* public navCtrl: NavController
|
||||
* ){}
|
||||
* ionCanViewEnter(): boolean{
|
||||
* ionViewCanEnter(): boolean{
|
||||
* // here we can either return true or false
|
||||
* // depending on if we want to leave this view
|
||||
* if(isValid(randomValue)){
|
||||
|
Reference in New Issue
Block a user