Skip to content

Commit 385bcbc

Browse files
MeAkibcrisbeto
authored andcommitted
refactor(router): remove redundant default value from routerOutletData input
Since `input()` defaults to `undefined`, the explicit initializer was unnecessary. This improves clarity and reduces boilerplate. (cherry picked from commit 8291760)
1 parent ca3fd78 commit 385bcbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router/src/directives/router_outlet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export class RouterOutlet implements OnDestroy, OnInit, RouterOutletContract {
238238
*
239239
* When unset, the value of the token is `undefined` by default.
240240
*/
241-
readonly routerOutletData = input<unknown>(undefined);
241+
readonly routerOutletData = input<unknown>();
242242

243243
private parentContexts = inject(ChildrenOutletContexts);
244244
private location = inject(ViewContainerRef);

0 commit comments

Comments
 (0)