0
我要顯示一個名爲「家」與路徑「/」和「/家」,但我的代碼它不工作模板如何在多個Ironrouter路徑中使用一個模板?
/** Iron router config file **/
Router.configure({
layoutTemplate: 'layout',
notFoundTemplate: '404',
loadingTemplate: 'loading',
fastRender: true,
});
// Home
Router.route('/', {
name: 'home',
waitOn: function() {
return [
Meteor.subscribe('infosContainers'),
Meteor.subscribe('infosMachines'),
Meteor.subscribe('alertes'),
];
},
fastRender: true,
});
Router.route('/home', {
name: 'home',
waitOn: function() {
return [
Meteor.subscribe('infosContainers'),
Meteor.subscribe('infosMachines'),
Meteor.subscribe('alertes'),
];
},
fastRender: true,
});
它不喜歡的事實模板「家「是在2路由(因爲如果我設置name: sokasok
在第二個它的工作)
你能幫我嗎?
huu我不清醒,謝謝! – Jerome