/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/cdk/testing/tests/test-shadow-boundary.ts
29 строк
857 B
Kristiyan Kostadinov
refactor(cdk/testing): remove explicit change detection
09 май 2026, 06:37
09 май 2026, 06:37
6bf11ab
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, ViewEncapsulation} from '@angular/core'; @Component({ selector: 'test-sub-shadow-boundary', template: '<div class="in-the-shadows">Shadow 2</div>', // tslint:disable-next-line:validate-decorators encapsulation: ViewEncapsulation.ShadowDom, }) export class TestSubShadowBoundary {} @Component({ selector: 'test-shadow-boundary', template: ` <div class="in-the-shadows">Shadow 1</div> <test-sub-shadow-boundary></test-sub-shadow-boundary> `, // tslint:disable-next-line:validate-decorators encapsulation: ViewEncapsulation.ShadowDom, imports: [TestSubShadowBoundary], }) export class TestShadowBoundary {}