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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -