Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a49c35e

Browse files
josephperrottalxhub
authored andcommitted
fix(router): remove setter for injector on OutletContext (#58343)
This is a cleanup/completion of the work in #56798 PR Close #58343
1 parent 917e99d commit a49c35e

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

‎goldens/public-api/router/index.api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,6 @@ export class OutletContext {
542542
children: ChildrenOutletContexts;
543543
// (undocumented)
544544
get injector(): EnvironmentInjector;
545-
set injector(_: EnvironmentInjector);
546545
// (undocumented)
547546
outlet: RouterOutletContract | null;
548547
// (undocumented)

‎packages/router/src/router_outlet_context.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ export class OutletContext {
2525
get injector(): EnvironmentInjector {
2626
return getClosestRouteInjector(this.route?.snapshot) ?? this.rootInjector;
2727
}
28-
// TODO(atscott): Only here to avoid a "breaking" change in a patch/minor. Remove in v19.
29-
set injector(_: EnvironmentInjector) {}
3028

3129
constructor(private readonly rootInjector: EnvironmentInjector) {
3230
this.children = new ChildrenOutletContexts(this.rootInjector);

0 commit comments

Comments
 (0)