Skip to content

Commit

Permalink
Step 7.25: Use profile component in verification page
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB committed Feb 13, 2017
1 parent e52d4bf commit c1e446b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/imports/pages/verification/verification.ts
@@ -1,5 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { AlertController, NavController, NavParams } from 'ionic-angular';
import { ProfilePage } from '../profile/profile';
import { PhoneService } from '../../services/phone';
import template from './verification.html';

Expand Down Expand Up @@ -28,9 +29,10 @@ export class VerificationPage implements OnInit {
}

verify(): void {
this.phoneService.login(this.phone, this.code)
.catch((e) => {
this.handleError(e);
this.phoneService.login(this.phone, this.code).then(() => {
this.navCtrl.setRoot(ProfilePage, {}, {
animate: true
});
});
}

Expand Down

0 comments on commit c1e446b

Please sign in to comment.