📜  flowrouter 观察路径更改 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:27.294000             🧑  作者: Mango

代码示例1
Tracker.autorun(function() {
  FlowRouter.watchPathChange();
  var currentContext = FlowRouter.current();
  // do anything with the current context
  // or anything you wish
});