()
| 177 | readonly currentNavigation = this.navigationTransitions.currentNavigation.asReadonly(); |
| 178 | |
| 179 | constructor() { |
| 180 | this.resetConfig(this.config); |
| 181 | |
| 182 | // Subscribe to navigation events before adding `setupNavigations` to `eventsSubscription` |
| 183 | // so `dispose()` unsubscribes the event listener before tearing down active transitions. |
| 184 | this.subscribeToNavigationEvents(); |
| 185 | this.eventsSubscription.add( |
| 186 | this.navigationTransitions.setupNavigations(this).subscribe({ |
| 187 | error: () => {}, |
| 188 | }), |
| 189 | ); |
| 190 | } |
| 191 | |
| 192 | private eventsSubscription = new Subscription(); |
| 193 | private subscribeToNavigationEvents() { |
nothing calls this directly
no test coverage detected