meteor - How to get the query parameters in Iron-router? -
i trying query parameters in url.
there doesn't seem easy way this...
which leaves me feeling must have missed in doc.
iron router >= 1.0
a route's query parameters available properties of this.params.query.
if url looked like:
/posts/5?sort_by=created_at then this.params.query.sort_by equal 'created_at'.
iron router < 1.0
a route's query parameters available properties of this.params.
if url looked like:
/posts/5?sort_by=created_at then this.params.sort_by equal 'created_at'.
Comments
Post a Comment