/
githubmirror
/
ionic-framework
Обзор
Документация
Войти
/
githubmirror
/
ionic-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular/standalone/src/providers/toast-controller.ts
15 строк
515 B
Liam DeBeasi
fix(angular): overlays are defined when using standalone controllers (#28560)
21 ноя 2023, 01:45
Не верифицирован
21 ноя 2023, 01:45
9453132
Код
Авторство
О чём код?
import { Injectable } from '@angular/core'; import { OverlayBaseController } from '@ionic/angular/common'; import type { ToastOptions } from '@ionic/core/components'; import { toastController } from '@ionic/core/components'; import { defineCustomElement } from '@ionic/core/components/ion-toast.js'; @Injectable({ providedIn: 'root', }) export class ToastController extends OverlayBaseController<ToastOptions, HTMLIonToastElement> { constructor() { super(toastController); defineCustomElement(); } }