3

我使用来自 meteor.js 的 orionjs:我更改了 orionjs 的博客示例(https://github.com/orionjs/examples/tree/master/blog

我使用 useraccounts:flow-routing 替换 useraccouts:iron-routing 包:

<a href="{{ pathFor 'dictionary.update' }}">edit</a>

哪个包负责解析和 pathFor,这是什么意思?如果我继续使用 flow-routing 包,我该如何处理 pathFor 函数?

4

2 回答 2

2

我找到了 arillo:flow-router-helpers 包。 https://github.com/arillo/meteor-flow-router-helpers

那里有一个完全替换功能“pathfor”。

于 2016-01-13T20:50:31.147 回答
1

这就是我使用 react、meteor 和 flow 路由器的方式

<a href="{FlowRouter.path('/')}">edit</a>

看看这个用例的例子https://github.com/arunoda/hello-react-meteor/blob/master/both/components/post_page.jsx#L14

并在这里获取文档 https://github.com/kadirahq/flow-router#flowrouterpathpathdef-params-queryparams

于 2016-01-07T04:18:31.847 回答