Skip to content

Commit

Permalink
Step 7.19: Import and use verfication page from login
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB committed Feb 13, 2017
1 parent 2c60ec9 commit 1168ec2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/imports/pages/login/login.ts
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';
import { Alert, AlertController, NavController } from 'ionic-angular';
import { PhoneService } from '../../services/phone';
import { VerificationPage } from '../verification/verification';
import template from './login.html';

@Component({
Expand Down Expand Up @@ -47,6 +48,11 @@ export class LoginPage {
alert.dismiss().then(() => {
return this.phoneService.verify(this.phone);
})
.then(() => {
this.navCtrl.push(VerificationPage, {
phone: this.phone
});
})
.catch((e) => {
this.handleError(e);
});
Expand Down

0 comments on commit 1168ec2

Please sign in to comment.