/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular/test/base/src/app/standalone/action-sheet-controller/action-sheet-controller.component.ts
21 строка
550 B
Liam DeBeasi
refactor(angular): action sheet provider imports correct instance from core (#28474)
08 ноя 2023, 20:46
Не верифицирован
08 ноя 2023, 20:46
c5dd622
Код
Авторство
О чём код?
import { Component } from '@angular/core'; import { ActionSheetController } from '@ionic/angular/standalone'; @Component({ selector: 'app-action-sheet-controller', templateUrl: './action-sheet-controller.component.html', standalone: true }) export class ActionSheetControllerComponent { registeredMenuCount = 0; constructor(private actionSheetCtrl: ActionSheetController) {} async openActionSheet() { const actionSheet = await this.actionSheetCtrl.create({ buttons: ['Button'] }); await actionSheet.present(); } }