/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular/test/base/src/app/lazy/modal-inline/modal-inline.component.ts
29 строк
611 B
Brandy Carney
test(angular): add ng19 test app (#30041)
04 дек 2024, 20:02
Не верифицирован
04 дек 2024, 20:02
e101f2e
Код
Авторство
О чём код?
import { AfterViewInit, Component } from "@angular/core"; /** * Validates that inline modals will correctly display * dynamic contents that are updated after the modal is * display. */ @Component({ selector: 'app-modal-inline', templateUrl: 'modal-inline.component.html', standalone: false }) export class ModalInlineComponent implements AfterViewInit { items: string[] = []; breakpointDidChangeCounter = 0; ngAfterViewInit(): void { setTimeout(() => { this.items = ['A', 'B', 'C', 'D']; }, 1000); } onBreakpointDidChange() { this.breakpointDidChangeCounter++; } }