【发布时间】:2015-07-11 10:35:27
【问题描述】:
我对多个视图有疑问。这很难解释,但我会尝试:
导航到状态“关于”并为 ui-view 'columnOne' 和 ui-view 'columnTwo' 设置模板 url 已成功完成
.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”设置视图“columTwo”的模板Url。 这是怎么做到的?有可能吗?
【问题讨论】:
标签: angularjs angular-ui-router