|
@@ -1,12 +1,6 @@
|
1
|
1
|
import { Component } from '@angular/core';
|
2
|
2
|
import { IonicPage, NavController, NavParams } from 'ionic-angular';
|
3
|
|
-
|
4
|
|
-/**
|
5
|
|
- * Generated class for the HomePage page.
|
6
|
|
- *
|
7
|
|
- * See https://ionicframework.com/docs/components/#navigation for more info on
|
8
|
|
- * Ionic pages and navigation.
|
9
|
|
- */
|
|
3
|
+import { UsersService } from '../../providers/users-service';
|
10
|
4
|
|
11
|
5
|
@IonicPage()
|
12
|
6
|
@Component({
|
|
@@ -14,13 +8,13 @@ import { IonicPage, NavController, NavParams } from 'ionic-angular';
|
14
|
8
|
templateUrl: 'profile.html',
|
15
|
9
|
})
|
16
|
10
|
export class ProfilePage {
|
|
11
|
+ user: any;
|
17
|
12
|
|
18
|
|
- constructor(public navCtrl: NavController, public navParams: NavParams) {
|
|
13
|
+ constructor(public navCtrl: NavController, public navParams: NavParams, public usersService: UsersService) {
|
|
14
|
+ this.user = this.usersService.getUserById().subscribe(user=>this.user = user);
|
19
|
15
|
}
|
20
|
16
|
|
21
|
|
- ionViewDidLoad() {
|
22
|
|
- console.log('ionViewDidLoad ProfilePage');
|
|
17
|
+ ionViewDidLoad() {
|
23
|
18
|
}
|
24
|
|
-
|
25
|
19
|
}
|
26
|
20
|
|