【发布时间】:2014-05-06 19:02:00
【问题描述】:
我的 Iron Router 配置中有以下设置:
Router.map(function () {
this.route('test', {
path: '/test',
template: 'test'
});
this.route('test_post_pay', {
path: '/test/:optionalParm?',
template: 'test',
data: {
message: 'thank you for donation'
}
});
});
如您所见,它们都指向同一个模板,但一个提供了一个消息变量,有没有办法在页面加载时在我的 Meteor 代码中检查这个变量?如果 Iron Router 提供消息,我想弹出一个模式
【问题讨论】:
标签: meteor