Ionic version:
[x] 4.x
Current behavior:
Angular has options to enable anchor handling using the following router config:
RouterModule.forRoot(routes, {
anchorScrolling: 'enabled',
onSameUrlNavigation: 'reload', // required to handle clicking same anchor twice
scrollPositionRestoration: 'enabled'
})
These options do not work when Ionic is used.
Expected behavior:
The options should be supported or alternate solution provided.
Steps to reproduce:
- Create a page with anchors using
routerLink with fragment directive to different sections.
- Try clicking on anchors.
Ionic info:
Ionic:
Ionic CLI : 5.2.4 (/Users/[user]/.nvm/versions/node/v10.15.3/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.9.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.5.1, (and 14 other plugins)
Utility:
cordova-res : 0.6.0
native-run : 0.2.8
Ionic version:
[x] 4.x
Current behavior:
Angular has options to enable anchor handling using the following router config:
These options do not work when Ionic is used.
Expected behavior:
The options should be supported or alternate solution provided.
Steps to reproduce:
routerLinkwithfragmentdirective to different sections.Ionic info: