将路由器安装到 meteor js

install router to meteor js

我是流星 js 的新手。我有一个问题,我应该如何将路由器安装到 meteor js,在 Mac Os 中,它安装:mrt add router,但是我应该如何在 windows 终端中安装,我想添加它在我的项目中。

谢谢)

在您的终端中,在您的应用程序文件夹中,执行

meteor add kadira:flow-router

并阅读文档以了解如何使用路由器。

https://atmospherejs.com/kadira/flow-router

Carefully Designed Client Side Router for Meteor.

FlowRouter is a very simple router for Meteor. It does routing for client-side apps and does not handle rendering itself.

It exposes a great API for changing the URL and reactively getting data from the URL. However, inside the router, it's not reactive. Most importantly, FlowRouter is designed with performance in mind and it focuses on what it does best: routing.