1
幫助我定義了一個路由器如下參數傳遞給模板對流星
Router.route('/profile/:input',function(){
this.render('profile');
});
這樣我就可以得到input
調用this.params.input
的價值。我想在MongoDB上查詢這個值並傳遞給模板Profile。但是我怎樣才能將這些信息從路由器傳遞給幫助者?
if (Meteor.isClient) {
Template.profile.helpers({
data: function(){
//what to do?!
}
});
}
工作,但不'的反饋query' –
謝謝,我編輯我的迴應 –