Skip to content

Commit 3586a7e

Browse files
committed
chore: cleanup angular details view
1 parent 74d91ef commit 3586a7e

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed
Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
<ActionBar [title]="flick?.title"></ActionBar>
22

33
<ScrollView height="100%">
4-
<StackLayout>
5-
<Image
6-
margin="0"
7-
stretch="aspectFill"
8-
[src]="flick?.image"></Image>
9-
<StackLayout padding="10 20">
10-
<ng-container *ngFor="let detail of flick?.details">
11-
<Label
12-
marginTop="15"
13-
fontSize="16"
14-
fontWeight="700"
15-
class="text-primary"
16-
textWrap="true"
17-
[text]="detail.title"></Label>
18-
<Label
19-
fontSize="14"
20-
class="text-secondary"
21-
textWrap="true"
22-
[text]="detail.body"></Label>
23-
</ng-container>
24-
</StackLayout>
4+
<StackLayout>
5+
<image margin="0" stretch="aspectFill" [src]="flick?.image"></image>
6+
@for (detail of flick?.details; track $index) {
7+
<StackLayout padding="10 20">
8+
<label
9+
marginTop="15"
10+
fontSize="16"
11+
fontWeight="700"
12+
class="text-primary"
13+
textWrap="true"
14+
[text]="detail.title"
15+
></label>
16+
<label
17+
fontSize="14"
18+
class="text-secondary"
19+
textWrap="true"
20+
[text]="detail.body"
21+
></label>
2522
</StackLayout>
26-
</ScrollView>
23+
}
24+
</StackLayout>
25+
</ScrollView>

0 commit comments

Comments
 (0)