Fix CanViews to ViewCans in Nav Guard section

This commit is contained in:
Patrick McDonald
2016-10-18 18:07:39 -04:00
committed by GitHub
parent 8921cb1290
commit bbe54ce083

View File

@ -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)){