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

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -