We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe2c0e1 commit dbb0067Copy full SHA for dbb0067
src/pages/verification/verification.ts
@@ -1,6 +1,7 @@
1
import { Component, OnInit } from '@angular/core';
2
import { AlertController, NavController, NavParams } from 'ionic-angular';
3
import { PhoneService } from '../../services/phone';
4
+import { ProfilePage } from '../profile/profile';
5
6
@Component({
7
selector: 'verification',
@@ -28,7 +29,11 @@ export class VerificationPage implements OnInit {
28
29
}
30
31
verify(): void {
- 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
+ })
37
.catch((e) => {
38
this.handleError(e);
39
});
0 commit comments