# \[au2\] router(-lite) - structured routers + access parent params

**URL:** <https://discourse.aurelia.io/t/au2-router-lite-structured-routers-access-parent-params/6539>\
**Category:** Help Requests\
**Created:** [November 5, 2025, 8:05pm UTC](https://discourse.aurelia.io/t/au2-router-lite-structured-routers-access-parent-params/6539 "2025-11-05T20:05:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![migajek](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/migajek/32/379_2.png) [@migajek](https://discourse.aurelia.io/u/migajek)\
**Post date:** [November 5, 2025, 8:05pm UTC](https://discourse.aurelia.io/t/au2-router-lite-structured-routers-access-parent-params/6539/1 "2025-11-05T20:05:44Z")

</div>

Hi, I’m struggling to find an example of how to (cleanly) access the route parameter that is defined on the parent route.

say we have a module named “spot”:

```auto

@route({

  routes: [

    { id: 'data', path: 'data/:channel', component: () => SingleChart },

    { id: 'export', path: ['', 'data/export'], component: () => ExportData }

  ]

})

export class Spot {

  id: string;  

  spot: GetSpotResponse;

  async canLoad(params: { id: string }) {

    this.id = params.id;    

    this.spot = await getApiSpotId({ path: { id: this.id } });

  }

}

```

now, the module is registered in the parent router:  
`{ id: ‘spot’, path: ‘spot/:id’, component: () => Spot },`

the question is - how to cleanly access the “id” of the spot, in a component such as ExportData.

```auto
async loading(params: {}, current: RouteNode) {        

        this.id = current.context.parent.node.params.id;

```

or maybe inject the Spot object and read from there? What is the suggested approach?

TIA.
