getRouteName.md

March 5, 2025 ยท View on GitHub

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

  • .current() method