I have a lazyloaded module called A. I load A when navigating to 'a/comp1/:data1'.
In order to achieve it I declared in my app.module a route like this:
Path:'a',
loadChildren: () => import('./a/a.module').then(m => m.aModule)
In the A module I declare other routes like:
Path:'comp1/:data1'
Component: comp1
In my comp1 I have some fragments, When I change the fragment, I want to scroll to the fragment. Actual behavior: my comp1 is destroyed then re-inizialized (then it scrolls to the fragment).
Maybe I did something wrong. With the lazyLoad declaration?
How can I prevent the app to reload on fragment changed?