Meteor JS: Flow-Router – How to take the value from any param of the route ( url ) ?

Use:

FlowRouter.getParam("NAME_PARAM")

Example:

Route :

URL : http://localhost:3000/clientText/hjmusRA6wpL9JgBNp/list/15

CODE OF THE ROUTE:

FlowRouter.route('/clientText/:client/list/:amount',{
   { ... }
});

CODE TO TAKE THE PARAM

var client = FlowRouter.getParam(“client”);

console.log(artista); // Result is : hjmusRA6wpL9JgBNp

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s