CodeZettaInterview Hub

Angular · Routing · Mid-Level · Scenario

How do you pass data to a route without putting it in the URL?

Short Interview Answer

Use the route data property, a resolver, or a shared service/state store.

Detailed Explanation

Static data goes in route config. Resolvers prefetch. Avoid relying on router state extras alone for refresh-safe data.

Did you know this answer?