0
我有我已经使用了我的app.I一个主布局已经生成的使用铁-CLI包我的应用程序和我的主人布局称为master_layout.html使用第二主布局
TI现在有一个问题。我所有的应用程序菜单都在主布局中,我需要创建一个不需要菜单的登录页面。这可以解决,如果我有第二个主布局,我可以从我原来的主布局剥离菜单,并使用我的登录页面的布局。
我的路线是这样的
Router.route('/Limit/ay', {
name: 'ay',
controller: 'LimitController',
action: 'ay',
where: 'client'
});
和我的控制器代码看起来像这样
ay: function() {
this.render('Ay');
//this.render('Added', {});
}
有没有一种方法,我可以再注册一个总体布局,并使用它自己的登录页面?
如果我注册另一布局
Router.configure({
layoutTemplate: 'MasterLayout',
loadingTemplate: 'Loading',
notFoundTemplate: 'NotFound'
});
Router.configure({
layoutTemplate: 'GoodLayout'
})
一个布局正在使用,而另一个被忽略,所以我只能一次使用一个主布局。
我该如何解决这个问题?