Skip to content

Commit 399dad2

Browse files
committed
chore(ProfileFive): Bring data to .ts file
1 parent de4701f commit 399dad2

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

src/pages/profile/profile-five/profile-five.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@
88
<div class="header-image"></div>
99
<div class="main-content" text-wrap text-center>
1010
<div class="circular"></div>
11-
<h2>Mohd Mazlan</h2>
12-
<p>Programmer &bull; UPM, MY</p>
13-
<p class="profile-description">Passionate Front-end developer with over 2 years experience. Recently focusing on developing mobile hybrid apps and web development.</p>
11+
<h2>{{user.name}}</h2>
12+
<p>{{user.occupation}} &bull; {{user.location}}</p>
13+
<p class="profile-description">{{user.description}}</p>
1414
<hr>
1515
<ion-list no-lines>
1616
<ion-item>
1717
<ion-icon name="mail" color="primary" item-start></ion-icon>
1818
<p>Email</p>
19-
johndoe@gmail.com
20-
<a button ion-button color="primary" item-end medium>Open App</a>
19+
{{user.email}}
20+
<a button ion-button href="mailto:{{user.email}}" color="primary" item-end medium>Open App</a>
2121
</ion-item>
2222
<ion-item>
2323
<ion-icon item-start name="call" color="danger"></ion-icon>
2424
<p>Mobile</p>
25-
555 555 555
26-
<a button ion-button href="tel:123456789" color="danger" item-end medium>Poke me</a>
25+
{{user.phone}}
26+
<a button ion-button href="tel:{{user.phone}}" color="danger" item-end medium>Poke me</a>
2727
</ion-item>
2828
<ion-item>
2929
<ion-icon item-start name="logo-whatsapp" color="secondary"></ion-icon>
3030
<p>Whatsapp</p>
31-
555 555 555
32-
<a button ion-button color="secondary" item-end medium href="whatsapp://send?text=Hi from ionic&phone=+5555555&abid=+555555555">Open App</a>
31+
{{user.whatsapp}}
32+
<a button ion-button color="secondary" item-end medium href="whatsapp://send?text=Hi from ionic&phone=+{{user.phone}}&abid=+{{user.phone}}">Open App</a>
3333
</ion-item>
3434
<ion-item>
3535
<ion-icon item-start name="pin" color="twitter"></ion-icon>
36-
<p>Jalan Kelisa 9, Taman Kelisa 45800 Jeram Kuala Selangor</p>
36+
<p>{{user.address}}</p>
3737
</ion-item>
3838
</ion-list>
3939
<h2>Get in touch</h2>

src/pages/profile/profile-five/profile-five.module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { IonicPageModule } from 'ionic-angular';
1010
imports: [
1111
IonicPageModule.forChild(ProfileFivePage),
1212
ParallaxHeaderDirectiveModule
13-
1413
],
1514
exports: [
1615
ProfileFivePage

src/pages/profile/profile-five/profile-five.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ import { NavController, NavParams, IonicPage } from 'ionic-angular';
88
})
99
export class ProfileFivePage {
1010

11+
user = {
12+
name: 'Cosima Niehaus',
13+
profileImage: 'assets/img/avatar/girl-avatar.png',
14+
coverImage: 'assets/img/background/background-5.jpg',
15+
occupation: 'Designer',
16+
location: 'Seattle, WA',
17+
description: 'Passionate Designer. Recently focusing on developing mobile hybrid apps and web development.',
18+
address: '27 King\'s College Cir, Toronto, ON M5S, Canada',
19+
phone: '555 555 555',
20+
email: 'cosima@niehaus.com',
21+
whatsapp: '555 555 555',
22+
};
23+
1124
constructor(public navCtrl: NavController) { }
1225

1326
ionViewDidLoad() {

0 commit comments

Comments
 (0)