-
Notifications
You must be signed in to change notification settings - Fork 27k
Closed
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimebreaking changescore: performancecore: stylesheets
Milestone
Description
Which @angular/* package(s) are relevant/related to the feature request?
core
Description
Currently, the RendererType2.styles is typed in a way that allows passing deeply nested arrays of styles:
| styles: (string|any[])[]; |
For this reason, we need to have a flatten operation in renderers:
| const styles = flattenStyles(type.id, type.styles, []); |
We should consider updating the code to only accept a flat list of styles (i.e. string[]) and dropping the flattening operation.
alan-agius4, Julien-Marcou, HyperLife1119 and florent1933
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimebreaking changescore: performancecore: stylesheets