Skip to content

fix(@angular/ssr): do not throw when router provider is missing - #33806

Closed
alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:fix-ssr-optional-router
Closed

fix(@angular/ssr): do not throw when router provider is missing#33806
alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:fix-ssr-optional-router

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

Safely retrieves the optional Router instance from the environment injector during SSR to avoid NullInjectorError when rendering non-routed applications.

Safely retrieves the optional Router instance from the environment injector during SSR to avoid NullInjectorError when rendering non-routed applications.
@alan-agius4 alan-agius4 closed this Aug 7, 2026
@alan-agius4
alan-agius4 deleted the fix-ssr-optional-router branch August 7, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant