Skip to content

Commit c62f2bb

Browse files
committed
refactor(angular/ssr): update usages of lastSuccessfulNavigation
In v21 `lastSuccessfulNavigation` is now a signal.
1 parent 5eeebf9 commit c62f2bb

File tree

1 file changed

+1
-1
lines changed
  • packages/angular/ssr/src/utils

1 file changed

+1
-1
lines changed

packages/angular/ssr/src/utils/ng.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export async function renderAngular(
100100
const envInjector = applicationRef.injector;
101101
const routerIsProvided = !!envInjector.get(ActivatedRoute, null);
102102
const router = envInjector.get(Router);
103-
const lastSuccessfulNavigation = router.lastSuccessfulNavigation;
103+
const lastSuccessfulNavigation = router.lastSuccessfulNavigation();
104104

105105
if (!routerIsProvided) {
106106
hasNavigationError = false;

0 commit comments

Comments
 (0)