Skip to content

Commit 85516b5

Browse files
committed
add photos and begin list
1 parent 7d92b75 commit 85516b5

File tree

7 files changed

+20
-13
lines changed

7 files changed

+20
-13
lines changed
Loading
Loading
Loading

src/pages/list/reactive-list-label/list-data.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,29 @@ export const LIST_DATA: IDataList[] = [
1010
{
1111
nameProduct: `Beneath a Scarlet Sky: A Novel`,
1212
author: 'Mark Sullivan',
13-
pictureProduct: '',
13+
pictureProduct: './assets/img/reactive-list-labels/beneath _scarlet.jpg',
1414
category: 'Literature & Fiction',
1515
price: 5.99
1616
},
1717
{
1818
nameProduct: `The Orphan's Tale: A Novel`,
1919
author: 'Pam Jenoff',
20-
pictureProduct: 'Literature & Fiction',
21-
category: '',
20+
pictureProduct: './assets/img/reactive-list-labels/the_orphan_tale.jpg',
21+
category: 'Literature & Fiction',
2222
price: 10.37
2323
},
2424
{
2525
nameProduct: 'All the Light We Cannot See: A Novel',
2626
author: 'Anthony Doerr',
27-
pictureProduct: 'Literature & Fiction',
28-
category: '',
27+
pictureProduct: './assets/img/reactive-list-labels/all_light_we_cannot_see.jpg',
28+
category: 'Literature & Fiction',
2929
price: 12.99
3030
},
3131
{
3232
nameProduct: 'Rules of Civility: A Novel',
3333
author: 'Rules of Civility: A Novel',
34-
pictureProduct: 'Literature & Fiction',
35-
category: '',
34+
pictureProduct: './assets/img/reactive-list-labels/rules_civility.jpg',
35+
category: 'Literature & Fiction',
3636
price: 11.79
3737
},
3838
{

src/pages/list/reactive-list-label/reactive-list-label.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,23 @@
77
<ion-header>
88

99
<ion-navbar>
10-
<ion-title>reactive-list-label</ion-title>
10+
<ion-title>Reactive List Label</ion-title>
1111
</ion-navbar>
1212

1313
</ion-header>
1414

1515

1616
<ion-content>
17+
<ion-card *ngFor="let book of dataList">
18+
<img [src]="book.pictureProduct"/>
19+
<ion-card-content>
20+
<ion-card-title>
21+
{{ book.nameProduct }}
22+
</ion-card-title>
23+
<p>
24+
{{ book.author }}
25+
</p>
26+
</ion-card-content>
1727

28+
</ion-card>
1829
</ion-content>

src/pages/list/reactive-list-label/reactive-list-label.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@ import { LIST_DATA } from './list-data';
1010
})
1111
export class ReactiveListLabelPage {
1212

13-
public dataList: IDataList = LIST_DATA;
13+
public dataList = LIST_DATA;
1414

1515
constructor(public navCtrl: NavController, public navParams: NavParams) {
1616
}
1717

18-
private initDataList() {
19-
20-
}
21-
2218
ionViewDidLoad() {
2319
console.log('ionViewDidLoad ReactiveListLabelPage');
2420
}

0 commit comments

Comments
 (0)