Permalink
Browse files

Step 7.26: Use profile component in verification page

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent fe2c0e1 commit dbb0067791e826fd2879a2c7c9b639b704912daf
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/pages/verification/verification.ts
@@ -1,6 +1,7 @@
import { Component, OnInit } from '@angular/core';
import { AlertController, NavController, NavParams } from 'ionic-angular';
import { PhoneService } from '../../services/phone';
import { ProfilePage } from '../profile/profile';
@Component({
selector: 'verification',
@@ -28,7 +29,11 @@ export class VerificationPage implements OnInit {
}
verify(): void {
this.phoneService.login(this.phone, this.code)
this.phoneService.login(this.phone, this.code).then(() => {
this.navCtrl.setRoot(ProfilePage, {}, {
animate: true
});
})
.catch((e) => {
this.handleError(e);
});

0 comments on commit dbb0067

Please sign in to comment.