/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/src/app/shared/doc-viewer/deprecated-tooltip.ts
22 строки
704 B
Kristiyan Kostadinov
build: add explicit change detection to docs site
31 мар 2026, 20:14
31 мар 2026, 20:14
b35a52a
Код
Авторство
О чём код?
/** * @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 {ChangeDetectionStrategy, Component} from '@angular/core'; import {MatTooltip} from '@angular/material/tooltip'; /** Shows the deprecation message for a specific field as a tooltip. */ @Component({ selector: 'deprecated-field', template: `<div class="docs-deprecated-content" [matTooltip]="message"></div>`, imports: [MatTooltip], changeDetection: ChangeDetectionStrategy.Eager, }) export class DeprecatedFieldComponent { /** Message regarding the deprecation */ message = ''; }