# Passing list item index via router

There can be situation when list item is on page and its details on another. So question is how to deal with `stateIndex`. For this case you can pass list item index along with url params and on target component catch it and assign to `stateIndex`

```typescript
export class TodoDescription extends React.Component<any, any> implements HasStateActions<TodoStateActions> {
    actions: TodoStateActions;
    statePath: any;
    get stateIndex() {
        return '0' // param comming from router or any other source
    };
}
```
