This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
ngStyle not being inlined for SSR #813
Closed
Description
Bug Report
The SSR docs suggest we inline all flex related styles so that they will work in SSR. This works for flexHide/flexShow
etc but does not appear to work for ngStyle
.
What is the expected behavior?
ngStyle.xs
, etc styles are also inlined using media queries similarly to fxHide
.
What is the current behavior?
ngStyle
is ignored on SSR.
What are the steps to reproduce?
Providing a StackBlitz (or similar) is the best way to get the team to see your issue.
Hard to give a StackBlitz since its an SSR related issue, but anything like this
[ngStyle.xs]="{'margin-top': '56px'}"
does not make it into the SSR rendered version.
What is the use-case or motivation for changing an existing behavior?
SSR should look like regular version, or as close as possible.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.7
Material 6.3.1
WIndows 10
TypeScript 2.7.2`
Is there anything else we should know?
No