Skip to content

Latest commit

History

History
19 lines (15 loc) 路 411 Bytes

getRouteName.md

File metadata and controls

19 lines (15 loc) 路 411 Bytes

getRouteName method

FlowRouter.getRouteName();
  • Returns {String}

Use to get the name of the route reactively.

Example

Tracker.autorun(function () {
  const routeName = FlowRouter.getRouteName();
  console.log('Current route name is: ', routeName);
});

Further reading