<mat-card class="term-container"> <div fxLayout="row" fxLayoutAlign="space-between stretch"> <h2>{{ term.termCode | getTermDescription }}</h2><p class="text-right semi-bold">Credits: 13</p> </div> <div> <app-course-item *ngFor="let course of getCoursesByTerm(term.termCode)" [course]="course"></app-course-item> </div> </mat-card>