-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Description
Empty style tag when one or more components don't have styles
Affected Package
The issue is caused by package @angular/angular
Is this a regression?
This happens in all versions of Angular
Description
When several components are added to a template and one or more of them do not have defined styles, an empty style tag appears in the header.
The desired result would be that this empty label was not added.
🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-jpfxql
https://angular-jpfxql.stackblitz.io
In the second URL, if we inspect the page we can see an empty style tag in the header corresponding to app.component.css
🌍 Your Environment
Angular Version:
Angular CLI: 8.0.3
Node: 10.15.0
OS: win32 x64
Angular:
...
Package Version
@angular-devkit/architect 0.800.3
@angular-devkit/core 8.0.3
@angular-devkit/schematics 8.0.3
@schematics/angular 8.0.3
@schematics/update 0.800.3
rxjs 6.4.0