How to get the query parameters in Iron-router?

前端 未结 8 1333
不知归路
不知归路 2020-12-13 10:24

I am trying to get the query parameters in the url.

There doesn\'t seem to be an easy way to do this...

which leaves me with the feeling that I must have mis

8条回答
  •  無奈伤痛
    2020-12-13 11:06

    try tihs:

     Router.current().params.parametername;
    

    and in router.js file routing must be:

    route(routername/:parametername)
    

提交回复
热议问题