0
你好角度社區: 我用ngNewRouter和Angular 1.4爲我的應用程序,我發現了一系列的問題或可能不是,這是我的無知...... 當你定義一個嵌套路由器,視搜索只在直接父,而不是看的定義鏈的路由器,這一點,我認爲違背了模塊化...NgNewRouter視口和導航
例如: MainController定義了以下配置:
$router.config ([
{
path: '/ process'
components: {
main: 'process'
}
},
{
path: '/ process /: id'
components: {
main: 'instance'
}
}
InstanceController定義如下:
{
path: '/ district /: id'
components: {
main: 'instance.details'
}
}
然後,關聯的模板不能在視口中呈現的,但如果我移動IntanceCntroller的設置MainController一切工作正常。
任何想法?