I've got these blocks of codes
<div fxLayout="row" fxLayoutGap="1em" fxLayout.lt-md="column" fxLayoutWrap>
<div *ngFor="let post of posts; let i=index" >
<div *ngIf = "i%3===0" fxFlex="90%" fxFlex.lt-md="100%">
<!--Some code-->
</div>
<div *ngIf = "!(i%3===0)" fxFlex="40%" fxFlex.lt-md="100%">
<!--Some other code-->
</div>
</div>
</div>
I want the stuff to be on the same row when I use fxFlex="40%"
However, they appear on different rows
https://github.com/angular/flex-layout/blob/cb0beab46507aa50c513aca8bb6ef632c397035c/CHANGELOG.md#breaking-changes
fxLayoutWrap has been removed. You can use fxLayout options.
<div fxLayout="row wrap"> ... </div>
flex-layout 6.0.0-beta.16
, since fxLayoutWrap directive has been deprecated in this version
<div fxLayout="column" fxLayoutAlign=" none">
<div fxFlex="100" fxLayout="row wrap" fxLayoutAlign="space-around stretch" fxLayout.xs="column">
<div *ngFor="let item of items | async" fxFlex.xs="100" fxFlex.sm="50" fxFlex.md="33" fxFlex.lg="33" fxFlex.xl="33">
{{item}}
</div>
</div>
</div>
fxLayoutWrap: * [fxLayoutWrap] was deprecated in earlier betas. fxLayoutWrap has now been removed. Developers should use fxLayout options.
Before
<div fxLayout="row" fxLayoutWrap="wrap"> ... </div>
current
<div fxLayout="row wrap"> ... </div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With