-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds array support on list-card component. Fixes bug when the faceboo…
…k likes are not in the profile info list
- Loading branch information
Showing
4 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
src/app/shared/components/list-card/list-card.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
<mat-card [class.expandable]="expandable"> | ||
<h5 class="app-details-heading">Profile information</h5> | ||
<h5 class="app-details-heading">{{title}}</h5> | ||
<mat-list class="app-static-data-list"> | ||
<mat-list-item *ngFor="let prop of listData" class="app-static-data-list-item"> | ||
<span class="app-static-data-list-key">{{ prop[0] | replaceCamelCase | replaceChars }}</span> | ||
<span class="flex-spacer"></span> | ||
<div class="app-static-data-list-value" [innerHTML]="prop[1] | safeHtml:true"></div> | ||
</mat-list-item> | ||
<ng-container *ngFor="let rowData of listData"> | ||
<mat-list-item *ngFor="let prop of rowData" class="app-static-data-list-item"> | ||
<span class="app-static-data-list-key">{{ prop[0] | replaceCamelCase | replaceChars }}</span> | ||
<span class="flex-spacer"></span> | ||
<div class="app-static-data-list-value" [innerHTML]="prop[1] | safeHtml:true"></div> | ||
</mat-list-item> | ||
</ng-container> | ||
</mat-list> | ||
</mat-card> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters