/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/aria/menu/menu-content.ts
35 строк
932 B
Kristiyan Kostadinov
fix(multiple): remove developer preview tag from aria (#33232)
09 май 2026, 12:40
Не верифицирован
09 май 2026, 12:40
0070780
Код
Авторство
О чём код?
/** * @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} from '@angular/core'; import {DeferredContent} from '../private'; /** * Defers the rendering of the menu content. * * This structural directive should be applied to an `ng-template` within a `ngMenu` * or `ngMenuBar` to lazily render its content only when the menu is opened. * * ```html * <div ngMenu #myMenu="ngMenu"> * <ng-template ngMenuContent> * <div ngMenuItem>Lazy Item 1</div> * <div ngMenuItem>Lazy Item 2</div> * </ng-template> * </div> * ``` * * @see [Menu](guide/aria/menu) * @see [MenuBar](guide/aria/menubar) */ @Directive({ selector: 'ng-template[ngMenuContent]', exportAs: 'ngMenuContent', hostDirectives: [DeferredContent], }) export class MenuContent {}