/
githubmirror
/
ionic-framework
Обзор
Документация
Войти
/
githubmirror
/
ionic-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular/src/directives/navigation/ion-back-button.ts
23 строки
766 B
Liam DeBeasi
feat(angular): ship Ionic components as Angular standalone components (#28311)
10 окт 2023, 20:06
Не верифицирован
10 окт 2023, 20:06
57e2476
Код
Авторство
О чём код?
import { Optional, ElementRef, NgZone, ChangeDetectorRef, Component, ChangeDetectionStrategy } from '@angular/core'; import { IonBackButton as IonBackButtonBase, NavController, Config } from '@ionic/angular/common'; import { IonRouterOutlet } from './ion-router-outlet'; @Component({ selector: 'ion-back-button', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, }) // eslint-disable-next-line @angular-eslint/directive-class-suffix export class IonBackButton extends IonBackButtonBase { constructor( @Optional() routerOutlet: IonRouterOutlet, navCtrl: NavController, config: Config, r: ElementRef, z: NgZone, c: ChangeDetectorRef ) { super(routerOutlet, navCtrl, config, r, z, c); } }