Created
November 9, 2017 01:16
-
-
Save rogerioadris/50f7982426e89ccdd1c67ce85b6220e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { IonicPage, NavController, NavParams } from 'ionic-angular'; | |
import { AutenticacaoServiceProvider } from '../../providers/autenticacao-service/autenticacao-service'; | |
@IonicPage() | |
@Component({ | |
selector: 'page-pagina2', | |
templateUrl: 'pagina2.html', | |
}) | |
export class Pagina2Page { | |
constructor(public navCtrl: NavController, public authService: AutenticacaoServiceProvider) { | |
} | |
ionViewDidLoad() { | |
console.log('ionViewDidLoad Pagina2Page'); | |
} | |
ionViewCanEnter() { | |
return this.authService.authenticated(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment