|
9 | 9 | import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';
|
10 | 10 |
|
11 | 11 | @Component({
|
12 |
| - selector: 'test-shadow-boundary', |
13 |
| - template: ` |
14 |
| - <div class="in-the-shadows">Shadow 1</div> |
15 |
| - <test-sub-shadow-boundary></test-sub-shadow-boundary> |
16 |
| - `, |
| 12 | + selector: 'test-sub-shadow-boundary', |
| 13 | + template: '<div class="in-the-shadows">Shadow 2</div>', |
17 | 14 | changeDetection: ChangeDetectionStrategy.OnPush,
|
18 | 15 | // tslint:disable-next-line:validate-decorators
|
19 | 16 | encapsulation: ViewEncapsulation.ShadowDom,
|
| 17 | + standalone: true, |
20 | 18 | })
|
21 |
| -export class TestShadowBoundary {} |
| 19 | +export class TestSubShadowBoundary {} |
22 | 20 |
|
23 | 21 | @Component({
|
24 |
| - selector: 'test-sub-shadow-boundary', |
25 |
| - template: '<div class="in-the-shadows">Shadow 2</div>', |
| 22 | + selector: 'test-shadow-boundary', |
| 23 | + template: ` |
| 24 | + <div class="in-the-shadows">Shadow 1</div> |
| 25 | + <test-sub-shadow-boundary></test-sub-shadow-boundary> |
| 26 | + `, |
26 | 27 | changeDetection: ChangeDetectionStrategy.OnPush,
|
27 | 28 | // tslint:disable-next-line:validate-decorators
|
28 | 29 | encapsulation: ViewEncapsulation.ShadowDom,
|
| 30 | + standalone: true, |
| 31 | + imports: [TestSubShadowBoundary], |
29 | 32 | })
|
30 |
| -export class TestSubShadowBoundary {} |
| 33 | +export class TestShadowBoundary {} |
0 commit comments