Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 353 Bytes

getParam.md

File metadata and controls

18 lines (14 loc) · 353 Bytes

getParam method

FlowRouter.getParam(paramName);
  • paramName {String}
  • Returns {String}

Reactive function which you can use to get a parameter from the URL.

Example

// route def: /apps/:appId
// url: /apps/this-is-my-app

const appId = FlowRouter.getParam('appId');
console.log(appId); // prints "this-is-my-app"