/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular/test/base/src/app/standalone/tabs/tab1.component.ts
21 строка
476 B
Liam DeBeasi
fix(angular): NavController works with nested outlets (#28421)
27 окт 2023, 16:17
Не верифицирован
27 окт 2023, 16:17
90acad1
Код
Авторство
О чём код?
import { Component } from '@angular/core'; import { IonRouterOutlet } from '@ionic/angular/standalone'; @Component({ selector: 'app-tab-one', template: ` Tab 1 <p id="parent-outlet"> Has Parent Outlet: <span>{{ hasParentOutlet }}</span> </p> `, standalone: true, }) export class TabOneComponent { hasParentOutlet = false; constructor(private routerOutlet: IonRouterOutlet) { this.hasParentOutlet = routerOutlet.parentOutlet != null; } }