-2
我有一些麻烦。我有流星的第一页在Meteor + Blaze中打开新链接
。
和我的第二页,它在相同的文件夹我的第一页
。
我的第一个页面的html:
<body>
<div class="container">
<header>
<h1>Todo List</h1>
</header>
<a href = "/secondPage">{{> test}}</a>
</div>
</body>
<template name="chuong">
<ul>
{{#each chuongs}}
<li>{{Chuong_ID}}, {{Truyen_ID}}</li>
{{/each}}
</ul>
</template>
我firts页面中的javascript:
import { Template } from 'meteor/templating';
import { Chuong } from '../api/chuong.js';
import './doctruyen.html';
Template.chuong.helpers ({
chuongs() {
return Chuong.find({});
},
});
我在HTML第二页:
<body>
<h1>MY SECOND PAGE</h1>
</body>
在第一页
,当我点击项目将显示第二页.... 感谢您的帮助!
你的图片链接无法打开,请在这里发表相关的代码。 – blueren
我第一页html:
Todo List
{{#each chuongs}}- {{Chuong_ID}},{{Truyen_ID}}
{{/每}}
– VyVy你的问题是究竟?试着看铁:路由器或流量路由器之间的路由页面,如果这就是你要找的。 – blueren