热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

ngStylenotbeinginlinedforSSR

BugReportTheSSRdocssuggestweinlineallflexrelatedstylessothatth


Bug Report

The SSR docs suggest we inline all flex related styles so that they will work in SSR. This works for

1
flexHide/flexShow

etc but does not appear to work for

1
ngStyle

.

What is the expected behavior?


1
ngStyle.xs

, etc styles are also inlined using media queries similarly to

1
fxHide

.

What is the current behavior?


1
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

1
[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?

1
2
3
4
 Angular 6.0.7

 Material 6.3.1

 WIndows 10

 TypeScript 2.7.2`


Is there anything else we should know?

No

该提问来源于开源项目:angular/flex-layout

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.



Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.





   



推荐阅读
author-avatar
我有点懂了_707
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有