Skip to content

Commit dbb0067

Browse files
dotansimhadarkbasic
authored andcommitted
Step 7.26: Use profile component in verification page
1 parent fe2c0e1 commit dbb0067

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pages/verification/verification.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Component, OnInit } from '@angular/core';
22
import { AlertController, NavController, NavParams } from 'ionic-angular';
33
import { PhoneService } from '../../services/phone';
4+
import { ProfilePage } from '../profile/profile';
45

56
@Component({
67
selector: 'verification',
@@ -28,7 +29,11 @@ export class VerificationPage implements OnInit {
2829
}
2930

3031
verify(): void {
31-
this.phoneService.login(this.phone, this.code)
32+
this.phoneService.login(this.phone, this.code).then(() => {
33+
this.navCtrl.setRoot(ProfilePage, {}, {
34+
animate: true
35+
});
36+
})
3237
.catch((e) => {
3338
this.handleError(e);
3439
});

0 commit comments

Comments
 (0)