W3cubDocs

/Angular

ResolveData

Represents the resolved data associated with a particular route.

API

type ResolveData = {
  [key: string | symbol]: ResolveFn<unknown> | DeprecatedResolve;
}

Description

Represents the resolved data associated with a particular route.

Returning a RedirectCommand directs the router to cancel the current navigation and redirect to the location provided in the RedirectCommand. Note that there are no ordering guarantees when resolvers execute. If multiple resolvers would return a RedirectCommand, only the first one returned will be used.

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/router/ResolveData