Questions tagged [ember-query-params]

19 questions
3
votes
2 answers

Ember query params for nested routes

I have the url /tests/test-slug?extradata=data all my params are setup correctly within ember. When that extradata param is set the model updates with the new data from the (/tests/test-slug?extradata=data) response. Usually I would retrieve data…
Robert
  • 815
  • 13
  • 29
2
votes
1 answer

Ember change queryParameters from an action in a controller

I have a filter list component which is supposed to update the data on the page. Depending on which filters are clicked in this component, I am trying to update my query parameters with it. Right now, I have the filters working and logging out with…
ntgCleaner
  • 5,865
  • 9
  • 48
  • 86
2
votes
0 answers

Programmatically pass query param name to Ember's link-to component

I'm trying to create a query param link component. The layout for my component looks something like this: {{#link-to routeName (query-params filter=paramValue)}} {{text}} {{/link-to}} routeName and paramValue are "bound" just fine to my component…
typeoneerror
  • 55,990
  • 32
  • 132
  • 223
1
vote
1 answer

How to use dot characters in Ember query params

I have an Ember v2.14 app in which I'm trying to query an external API. The API takes query params that have dots (".") in the keys, like this: http://example.com/records?query.code=abc123&code.system=whatevs I've tried setting up the queryParams…
joshneipp
  • 91
  • 2
  • 5
1
vote
0 answers

How to have dynamic segments and pass objects and query params all at the same time to a route

I am trying to transit to a route called home with the following url: "home/dynamictext1/dynamictext2?queryparam1=2&queryparams2=3" i also need to pass an object called currentData to the route as well. here is my current code. I was wondering…
1
vote
1 answer

How to efficiently store records as Ember query parameters

Background: The user can filter a list based on tags, every tag is an Ember Data model. The selected filtering tags should be stored in the URL via query parameters. I also want to display the selected tags in the interface. What's the best way to…
stravid
  • 1,009
  • 7
  • 14
1
vote
0 answers

QueryParams not changing URL

I am currently trying to set queryParams using transitionTo. For whatever reason, when I try to set queryParams, nothing happens (my URL remains the same). My code looks like this: routes/recipes/index.js: actions: { ingredientQuery (query)…
Nicholas Haley
  • 3,558
  • 3
  • 29
  • 50
1
vote
2 answers

How to show default query param value in url in ember?

Ember doesn't show the query params in the url if the query params value is the default value. But I'd like to show it. Is there an option to change this behavior to show rather than hide? App.IndexController = Ember.ArrayController.extend({ …
ahnbizcad
  • 10,491
  • 9
  • 59
  • 85
1
vote
1 answer

Query params not persisting in Ember.js

Given the template and the script App = Ember.Application.create(); App.Router.map(function() { …
Kelly Selden
  • 1,238
  • 11
  • 21
0
votes
1 answer

Ember transitionTo queryParams not updating the model or URL

I am trying to use queryParams to update and refresh the model. I've set it up the action to use route-action because the change event that's firing the action is within a component. I've installed ember-route-action-helper and the change event is…
ntgCleaner
  • 5,865
  • 9
  • 48
  • 86
0
votes
1 answer

Send unencoded query parameters in Ember

I'm working with an API that only accepts unencoded query parameters. I notice that when I make a query in Ember like so: this.store.query('listing', {filter: params}); The uri is encoded when it hits the…
0
votes
2 answers

Changing query param is not shown in the url

I want to click on a "export" button and transit to a route "home" with "export" query param set as true. I don't want this query param to refresh my route. So here is how my route looks like: export default Route.extend(ApplicationRouteMixin, { …
user5471528
  • 217
  • 2
  • 9
0
votes
1 answer

Using ember-cli-selectize multiselect on query params

I'm currently using ember-cli-selectize on a query param in ember.js. Pretty much like the following: Template {{ember-selectize content=makes optionValuePath="content.make" optionLabelPath="content.make" value=car_makes …
Ben
  • 458
  • 1
  • 5
  • 9
0
votes
1 answer

Ember.js - query params strips "+" character and adds space character

I have come up with a problem while using query params in ember.js.when I access query params from URL it strips out certain characters like "+" and adds "space" instead of it.is there any solution to get exact parameter from URL so that I can send…
0
votes
0 answers

Ember js Query Param Alphabetical Order

I current have a link as below in xyz page i.e. #/xyz: Random Text Upon clicking this I go to below url first #/abc/def?zqp=2&bqp=1 And then the url changes to below url cause I believe ember-js takes in query…
wallop
  • 2,510
  • 1
  • 22
  • 39
1
2