状态
.state('event.detail', {
url: '/:id',
views: {
'event-detail': {
controller: EventDetail,
templateUrl: ...
}
}
})
.state('event.detail.info', {
url: '/info',
views: {
'event-info': {
templateUrl: ...
}
}
})
.state('event.detail.map', {
url: '/map',
views: {
'event-map': {
templateUrl: ...
}
}
})
ui-sref
<a ui-sref="event.detail({id: event.id}).map">Map</a>
这给了我一个Invalid state ref
错误。