-
Notifications
You must be signed in to change notification settings - Fork 768
ngStyle not being inlined for SSR #813
Comments
@CaerusKaru thanks! |
ngClass seems to have the same issue. |
@Antti-Kaikkonen as mentioned briefly in the SSR design doc, there is no solution for using
PS If you think you have a solution to the EDIT: For posterity, one possible implementation solution for |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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 forngStyle
.What is the expected behavior?
ngStyle.xs
, etc styles are also inlined using media queries similarly tofxHide
.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?
Is there anything else we should know?
No
The text was updated successfully, but these errors were encountered: