Skip to content

Instantly share code, notes, and snippets.

@geykel

geykel/home.ts Secret

Created Jul 13, 2017
Embed
What would you like to do?
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { AuthService } from '../../providers/auth-service';
import { SignInPage } from '../signin/signin';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(
public navCtrl: NavController,
public authService: AuthService) {
}
signOut() {
this.authService.signOut();
this.navCtrl.setRoot(SignInPage);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment