Skip to content

Commit 3b4efac

Browse files
dotansimhadarkbasic
authored andcommitted
Step 7.20: Import and use verfication page from login
1 parent 4522871 commit 3b4efac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pages/login/login.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Component } from '@angular/core';
22
import { Alert, AlertController, NavController } from 'ionic-angular';
33
import { PhoneService } from '../../services/phone';
4+
import { VerificationPage } from '../verification/verification';
45

56
@Component({
67
selector: 'login',
@@ -47,6 +48,11 @@ export class LoginPage {
4748
alert.dismiss().then(() => {
4849
return this.phoneService.verify(this.phone);
4950
})
51+
.then(() => {
52+
this.navCtrl.push(VerificationPage, {
53+
phone: this.phone
54+
});
55+
})
5056
.catch((e) => {
5157
this.handleError(e);
5258
});

0 commit comments

Comments
 (0)