Permalink
Browse files

Step 7.20: Import and use verfication page from login

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent 9b5cde6 commit 1ff1529b933bfbff09e911421bdd1bb04c6473d9
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/pages/login/login.ts
View
@@ -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';
@Component({
selector: 'login',
@@ -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);
});

0 comments on commit 1ff1529

Please sign in to comment.