/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/material/tabs/tab-content.ts
25 строк
885 B
Kristiyan Kostadinov
fix(multiple): remove empty constructors (#33048)
08 апр 2026, 22:21
Не верифицирован
08 апр 2026, 22:21
ce4c2c0
Код
Авторство
О чём код?
/** * @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 {Directive, InjectionToken, TemplateRef, inject} from '@angular/core'; /** * Injection token that can be used to reference instances of `MatTabContent`. It serves as * alternative token to the actual `MatTabContent` class which could cause unnecessary * retention of the class and its directive metadata. */ export const MAT_TAB_CONTENT = new InjectionToken<MatTabContent>('MatTabContent'); /** Decorates the `ng-template` tags and reads out the template from it. */ @Directive({ selector: '[matTabContent]', providers: [{provide: MAT_TAB_CONTENT, useExisting: MatTabContent}], }) export class MatTabContent { template = inject<TemplateRef<any>>(TemplateRef); }