mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
feat(angular): remove IonBackButtonDelegate (#29030)
Issue number: Internal --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> We currently export two versions of the `ion-back-button` angular implementation: `IonBackButton` and `IonBackButtonDelegate`. ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Removes `IonBackButtonDelegate` in favor of `IonBackButton` ## Does this introduce a breaking change? - [x] Yes - [ ] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#footer for more information. --> - The `IonBackButtonDelegate` class has been removed in favor of `IonBackButton`. ```diff - import { IonBackButtonDelegate } from '@ionic/angular'; + import { IonBackButton } from '@ionic/angular'; ``` ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
This commit is contained in:
15
BREAKING.md
15
BREAKING.md
@ -29,6 +29,8 @@ This is a comprehensive list of the breaking changes introduced in the major ver
|
|||||||
- [Select](#version-8x-select)
|
- [Select](#version-8x-select)
|
||||||
- [Textarea](#version-8x-textarea)
|
- [Textarea](#version-8x-textarea)
|
||||||
- [Toggle](#version-8x-toggle)
|
- [Toggle](#version-8x-toggle)
|
||||||
|
- [Framework Specific](#version-8x-framework-specific)
|
||||||
|
- [Angular](#version-8x-angular)
|
||||||
|
|
||||||
<h2 id="version-8x-browser-platform-support">Browser and Platform Support</h2>
|
<h2 id="version-8x-browser-platform-support">Browser and Platform Support</h2>
|
||||||
|
|
||||||
@ -198,4 +200,15 @@ For more information on styling toast buttons, refer to the [Toast Theming docum
|
|||||||
|
|
||||||
<h4 id="version-8x-toggle">Toggle</h4>
|
<h4 id="version-8x-toggle">Toggle</h4>
|
||||||
|
|
||||||
- The `legacy` property and support for the legacy syntax, which involved placing an `ion-toggle` inside of an `ion-item` with an `ion-label`, have been removed. For more information on migrating from the legacy toggle syntax, refer to the [Toggle documentation](https://ionicframework.com/docs/api/toggle#migrating-from-legacy-toggle-syntax).
|
- The `legacy` property and support for the legacy syntax, which involved placing an `ion-toggle` inside of an `ion-item` with an `ion-label`, have been removed. For more information on migrating from the legacy toggle syntax, refer to the [Toggle documentation](https://ionicframework.com/docs/api/toggle#migrating-from-legacy-toggle-syntax).
|
||||||
|
|
||||||
|
<h2 id="version-8x-framework-specific">Framework Specific</h2>
|
||||||
|
|
||||||
|
<h4 id="version-8x-angular">Angular</h4>
|
||||||
|
|
||||||
|
- The `IonBackButtonDelegate` class has been removed in favor of `IonBackButton`.
|
||||||
|
|
||||||
|
```diff
|
||||||
|
- import { IonBackButtonDelegate } from '@ionic/angular';
|
||||||
|
+ import { IonBackButton } from '@ionic/angular';
|
||||||
|
```
|
||||||
|
@ -5,8 +5,6 @@ export { SelectValueAccessorDirective as SelectValueAccessor } from './directive
|
|||||||
export { TextValueAccessorDirective as TextValueAccessor } from './directives/control-value-accessors/text-value-accessor';
|
export { TextValueAccessorDirective as TextValueAccessor } from './directives/control-value-accessors/text-value-accessor';
|
||||||
export { IonTabs } from './directives/navigation/ion-tabs';
|
export { IonTabs } from './directives/navigation/ion-tabs';
|
||||||
export { IonBackButton } from './directives/navigation/ion-back-button';
|
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 { IonNav } from './directives/navigation/ion-nav';
|
||||||
export { IonRouterOutlet } from './directives/navigation/ion-router-outlet';
|
export { IonRouterOutlet } from './directives/navigation/ion-router-outlet';
|
||||||
export {
|
export {
|
||||||
|
Reference in New Issue
Block a user