Angularjs 角度,在ui视图内设置ui视图
我有一个关于多重观点的问题。这很难解释,但我会尝试: 已成功导航到状态“关于”并设置ui视图“columnOne”和ui视图“columnTwo”的模板urlAngularjs 角度,在ui视图内设置ui视图,angularjs,angular-ui-router,Angularjs,Angular Ui Router,我有一个关于多重观点的问题。这很难解释,但我会尝试: 已成功导航到状态“关于”并设置ui视图“columnOne”和ui视图“columnTwo”的模板url .state('about', { url: '/about', views: { // the main template will be placed here (relatively named) '': { templateUrl: 'partial-about.html'
.state('about', {
url: '/about',
views: {
// the main template will be placed here (relatively named)
'': { templateUrl: 'partial-about.html' },
// the child views will be defined here (absolutely named)
'columnOne@about': { template: 'Look I am a column!' },
// for column two, we'll define a separate controller
'columnTwo@about': {
templateUrl: 'table-data.html',
controller: 'scotchController'
}
}
});
现在我想从视图“columnOne”设置视图“ColumnTwo”的templateUrl。
这是怎么做到的?有可能吗?您从网站上获取的示例是并行视图示例非嵌套视图嵌套视图可以通过创建页面而不是使用其他状态来创建。like registration是一个页面和多步骤表单,与包含注册的页面相比,我们将声明注册和部分like registration.contact、registration.acadamics、registration.extraactivities。真正的人那里的文档是安静的混乱你从那里拿的例子是平行视图例子不是嵌套视图嵌套视图可以通过制作一个页面而不是使用其他状态来制作。like registration是一个页面和多步骤表单,与包含注册的页面相比,我们将声明注册和部分like registration.contact、registration.acadamics、registration.extraactivities。真的,那里的文档非常混乱你有例子吗?你有例子吗?