Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 819 Bytes

setParams.md

File metadata and controls

23 lines (18 loc) · 819 Bytes

setParams method

FlowRouter.setParams(params);
  • params {Object} - Serialized route parameters, { _id: 'str' }
  • Returns {true}

Change the current Route's params with the new values and re-route to the new path.

// route def: /apps/:appId
// url: /apps/this-is-my-app?show=yes&color=red

FlowRouter.setParams({appId: 'new-id'});
// Then the user will be redirected to the following path
//      /apps/new-id?show=yes&color=red

Further reading