# Passing Query Parameters Into Form For Component

**URL:** <https://discuss.emberjs.com/t/passing-query-parameters-into-form-for-component/8202>\
**Category:** Uncategorized\
**Created:** [June 17, 2015, 12:06am UTC](https://discuss.emberjs.com/t/passing-query-parameters-into-form-for-component/8202 "2015-06-17T00:06:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iaskquestions](https://avatars.discourse-cdn.com/v4/letter/i/43a26b/32.png) [@iaskquestions](https://discuss.emberjs.com/u/iaskquestions)\
**Post date:** [June 17, 2015, 12:06am UTC](https://discuss.emberjs.com/t/passing-query-parameters-into-form-for-component/8202/1 "2015-06-17T00:06:24Z")

</div>

Hi All,

I have a controller (call it A) with a template (call it B) that has multiple components. Each component is essentially a form. There are multiple query parameters for controller A, and I want to be able to update these query parameters with the form in the component. Currently, I have my component template look like:

`{{input value=query_value class="form-control" type="text" size="25"}}`

I propagate events from my component upwards to my controller A whenever a `submit` button is pressed. Controller A will call `this.set('query_value', value_here)`.

I can see the new query parameters in my URL. Howerver, the input fields don’t show the current query params inside the input fields. I don’t want the user to have to retype in what they previously submitted.

How do I handle this case? Any help would be appreciated.

Thanks!

Note: I’m using Ember 1.12.
