【发布时间】:2015-12-30 23:52:00
【问题描述】:
我创建了一个路由并给它一个模板的路径。但是当我运行应用程序时,它说'没有路线'。路由器根本不遵循路径。 (我确定已经安装了路由器包,因为如果我不创建和指定任何路由,主页上会显示默认消息如何使用路由器)
HTML:
<head>
<title>todos</title>
</head>
<body>
{{>todos}}
</body>
<template name="register">
<h2>Register</h2>
</template>
route.js:
Router.route('/register');
【问题讨论】:
标签: meteor iron-router