Skip to content

Instantly share code, notes, and snippets.

@mayrascript
Created December 18, 2019 02:03
Show Gist options
  • Select an option

  • Save mayrascript/b00c5e2c9f52742f81635cf2f465ba00 to your computer and use it in GitHub Desktop.

Select an option

Save mayrascript/b00c5e2c9f52742f81635cf2f465ba00 to your computer and use it in GitHub Desktop.
<div class="courses-list">
<mat-card *ngFor="let course of courses$ | async">
<mat-card-title>
{{course.title}}
</mat-card-title>
<mat-card-content>
{{course.desc}}
<div>
Fecha de Publicación {{course?.publicationDate | date:'short'}}
</div>
<div *ngFor="let m of course.modules">
<p> {{m.title}}</p>
<p> {{m.desc}} </p>
<div *ngFor="let theme of m.themes">
<p>{{theme.title}}</p>
</div>
</div>
</mat-card-content>
<mat-card-footer>
<button (click)="showDetails(course.id)" mat-icon-button aria-label="Example icon-button with a heart icon">
<mat-icon>visibility</mat-icon>
</button>
</mat-card-footer>
</mat-card>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment