I want to position an array of cards in such a way that one card is displayed per column on phone, two and three for tab and desktop browser, respectively. I tried: https://angular-u6akh5.stackblitz.io
import { Component } from "@angular/core";
@Component({
selector: "cards",
template: `
<div fxLayout="row" fxLayoutWrap>
<mat-card
fxFlex.lg="33%"
fxFlex.lt-lg="50%"
fxFlex.xs="100%"
*ngFor="let num of nums"
>
{{ num }}
</mat-card>
</div>
`,
styles: ["mat-card { max-width: 360px; }"]
})
export class Cards {
nums = [1, 2, 3, 4, 5];
}