mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +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'))
|
* .catch(()=> console.log('should I stay or should I go now'))
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* ionCanViewLeave(): boolean{
|
* ionViewCanLeave(): boolean{
|
||||||
* // here we can either return true or false
|
* // here we can either return true or false
|
||||||
* // depending on if we want to leave this view
|
* // depending on if we want to leave this view
|
||||||
* if(isValid(randomValue)){
|
* if(isValid(randomValue)){
|
||||||
@ -284,7 +284,7 @@ import { ViewController } from './view-controller';
|
|||||||
* constructor(
|
* constructor(
|
||||||
* public navCtrl: NavController
|
* public navCtrl: NavController
|
||||||
* ){}
|
* ){}
|
||||||
* ionCanViewEnter(): boolean{
|
* ionViewCanEnter(): boolean{
|
||||||
* // here we can either return true or false
|
* // here we can either return true or false
|
||||||
* // depending on if we want to leave this view
|
* // depending on if we want to leave this view
|
||||||
* if(isValid(randomValue)){
|
* if(isValid(randomValue)){
|
||||||
|
Reference in New Issue
Block a user