2015-06-18 50 views
0

当我们从一个页面导航到另一个页面时,我们遇到了路由器的问题。用于页面导航的路由器路径

假设我们在template1中,我们需要去templete2.then然后我们做Router.go(/ templete2)right.I需要在URl templete1/templete2.Please帮助我。

回答

0

尝试在router.js以下文件

Router.route('template1/template2',function() { 
    this.render('template2'); 
}); 
+0

还有一个问题是图像template2.images不加载是否有公共文件夹中。 @syed zoheb –

+0

如果你的图片在公共文件夹中。使用url作为'background:url(/images/bg.png)'而不是'background:url(public/images/bg.png)'。当你访问一个静态文件时,你不需要在url中指定'public folder'。 – syed