MCPcopy
hub / github.com/angular/angular / constructor

Method constructor

packages/router/src/router.ts:179–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 readonly currentNavigation = this.navigationTransitions.currentNavigation.asReadonly();
178
179 constructor() {
180 this.resetConfig(this.config);
181
182 this.navigationTransitions.setupNavigations(this).subscribe({
183 error: (e) => {
184 // Note: This subscription is not unsubscribed when the `Router` is destroyed.
185 // This is intentional as the `Router` is generally never destroyed.
186 // If it is destroyed, the `events` subject is completed, which cleans up this subscription.
187 },
188 });
189 this.subscribeToNavigationEvents();
190 }
191
192 private eventsSubscription = new Subscription();
193 private subscribeToNavigationEvents() {

Callers

nothing calls this directly

Calls 4

resetConfigMethod · 0.95
setupNavigationsMethod · 0.80
subscribeMethod · 0.65

Tested by

no test coverage detected