# Transition.params vs transition.queryParams?

**URL:** <https://discuss.emberjs.com/t/transition-params-vs-transition-queryparams/9941>\
**Category:** Uncategorized\
**Created:** [February 26, 2016, 5:48am UTC](https://discuss.emberjs.com/t/transition-params-vs-transition-queryparams/9941 "2016-02-26T05:48:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ping](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@Ping](https://discuss.emberjs.com/u/Ping)\
**Post date:** [February 26, 2016, 5:48am UTC](https://discuss.emberjs.com/t/transition-params-vs-transition-queryparams/9941/1 "2016-02-26T05:48:48Z")

</div>

In the context of route’s beforeModel(transition), I am trying to get hold of the params being passed in from a link-to. But I keep getting undefined from transition.queryParams.foo so I use transition.params[‘controller’].foo instead.

I probably missed the docs but what’s the difference between transition.params and transition.queryParams? And which is the right way to obtain the params from link-to in beforeModel()?
