This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
Closed
Description
With last nightly build, there are no more blocking errors with Flex Layout in Universal, but the pre-rendered styles are not correct.
Repro :
git clone https://github.com/cyrilletuzi/nguniversal-expressengine-httpinterceptor.git
git checkout -b flexlayoutissue
npm install
npm start
- go to localhost:3000 : rendered correctly with JavaScript (vertical in small screens, horizontal in desktop screens with 3 stretched items by row)
- disable JavaScript to test what the server is pre-rendering and refresh : not rendered correctly (horizontal with the 4 items on the same line, on all screen sizes)
The only flex relative code is in src/app/app.component
(the other files are just Universal boilerplate, and innerHTML
is just to quickly test different heights) :
<div fxLayout.xs="column" fxLayoutWrap.xs="nowrap">
<div class="test" fxFlex.gt-xs="calc(100% / 3)" *ngFor="let item of list" [innerHTML]="item"></div>
</div>
Activity