Closed sidmohanty11 closed 1 month ago
Latest commit: 06f3bb0d62eeab70f137d21de1878d932a42c0ad
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
CI is running/has finished running commands for commit 06f3bb0d62eeab70f137d21de1878d932a42c0ad. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
š See all runs for this CI Pipeline Execution
Sent with š from NxCloud.
Description
In this PR, we are adding a new option called
visuallyIgnoreHostElement
which attachesdisplay: contents;
to the host angular element, which means they will now just be considered as decoration element and will not interfere with dom stylings in any way.Steps to reproduce
@Component({ selector: 'deep', standalone: true, template: `
`, //styles: [':host { display: contents; }'] }) export class Deep{}
@Component({ selector: 'nested', standalone: true, template: `
`, imports: [Deep], //styles: [':host { display: contents; }'] }) export class Nested{}
@Component({ selector: 'hello', standalone: true, template: `
`, imports: [Nested], //styles: [':host { display: contents; }'] }) export class Hello{}
@Component({ selector: 'app-root', standalone: true, template: `
`, imports: [Hello], }) export class PlaygroundComponent {}
bootstrapApplication(PlaygroundComponent);