• Genel Bakış
@angular/router

The contextual information provided to a resources function.

API

    
      interface ResourceContext {}
    
    

params

Signal<Params>

The path and matrix parameters available to the route.

queryParams

Signal<Params>

The query parameters of the route.

fragment

Signal<string | null>

The URL fragment.

data

Signal<Record<string, any>>

Data provided in the route configuration.

resources

Signal<ResourceResult>

Resources inherited from ancestor routes, keyed by name.

Read this signal inside a reactive context such as a resource's params function (for example, with chain(ctx.resources()['user'])) rather than synchronously in the resources function body, as ancestor resources functions may still be initializing asynchronously.

Detaylara atla