From fb7735397ed53323dd93a172407117228610b929 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Tue, 16 Jan 2024 11:53:25 -0500 Subject: [PATCH] fix(angular): add old IonBackButtonDelegate import (#28831) Issue number: resolves #28827 --------- ## What is the current behavior? This import was renamed to `IonBackButton` as part of https://github.com/ionic-team/ionic-framework/pull/28311/commits/9f20780d66a113410e5450139f8ecab3a9d4a0c9. However, we did not consider that some developers are importing this to use with `ViewChild`. While we should keep alignment with other component imports, we need to support the old import until we can make a breaking change in Ionic 8. ## What is the new behavior? - Adds the old IonBackButtonDelegate import ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information Dev build: `7.6.5-dev.11705352188.1c6cdb08` --- packages/angular/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/angular/src/index.ts b/packages/angular/src/index.ts index 53075b7aab5..41bdacf14e9 100644 --- a/packages/angular/src/index.ts +++ b/packages/angular/src/index.ts @@ -6,6 +6,8 @@ export { SelectValueAccessorDirective as SelectValueAccessor } from './directive export { TextValueAccessorDirective as TextValueAccessor } from './directives/control-value-accessors/text-value-accessor'; export { IonTabs } from './directives/navigation/ion-tabs'; export { IonBackButton } from './directives/navigation/ion-back-button'; +// TODO FW-5889 +export { IonBackButton as IonBackButtonDelegate } from './directives/navigation/ion-back-button'; export { IonNav } from './directives/navigation/ion-nav'; export { IonRouterOutlet } from './directives/navigation/ion-router-outlet'; export {