-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Feature: Hostless components #18877
Copy link
Copy link
Open
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: host and host bindingsfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: host and host bindingsfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration
I'm submitting a...
Current behavior
Component-containers like
<app-root>,<app-hero-list>, etc. do break flex layout.Expected behavior
A component(or whole module) should have the option to create no html-element. Instead Angular should work with comments instead of html-elements, exactly like
ng-container.Minimal reproduction of the problem with instructions
Plunker: https://plnkr.co/edit/aOWUciRx2EsRsKwL2zma?p=preview
(Uncomment app-root in styles.css to see currently needed fix)
What is the motivation / use case for changing the behavior?
Using
display:flexonly affects the child-element which gets broken by any<app-component>tag. To apply the example above with multiple nested components to require ugly, hardcoded stylesheets:Also, as a frontend developer, i don't like the
<app-component>tags either :DEnvironment