Templates.helpers.query-params()

query-params (hash) Objectpublic

Defined in packages/ember-htmlbars/lib/helpers/query-params.js:9

This is a helper to be used in conjunction with the link-to helper. It will supply url query parameters to the target route.

Example

1
{{#link-to 'posts' (query-params direction="asc")}}Sort{{/link-to}}

Parameters:

hash Object
takes a hash of query parameters

Returns:

Object
A `QueryParams` object for `{{link-to}}`
doc_EmberJs
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.