/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/tree/outlet.ts
27 строк
801 B
Kristiyan Kostadinov
refactor(multiple): remove standalone flag from Material
17 окт 2024, 17:40
17 окт 2024, 17:40
b84ebdc
Код
Авторство
О чём код?
/** * @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 {CDK_TREE_NODE_OUTLET_NODE, CdkTreeNodeOutlet} from '@angular/cdk/tree'; import {Directive, ViewContainerRef, inject} from '@angular/core'; /** * Outlet for nested CdkNode. Put `[matTreeNodeOutlet]` on a tag to place children dataNodes * inside the outlet. */ @Directive({ selector: '[matTreeNodeOutlet]', providers: [ { provide: CdkTreeNodeOutlet, useExisting: MatTreeNodeOutlet, }, ], }) export class MatTreeNodeOutlet implements CdkTreeNodeOutlet { viewContainer = inject(ViewContainerRef); _node = inject(CDK_TREE_NODE_OUTLET_NODE, {optional: true}); }