Skip to content
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 4522871 commit 3b4efacd09975eb105da477f9135d3db2fadf5cf
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/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';

@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 3b4efac

Please sign in to comment.
You can’t perform that action at this time.