0
我正在尝试第一次使用Angular UI路由器。我有问题的意见不被相应地调用。检查闯入者:http://plnkr.co/edit/cBfR6u2BPJvKN16vi6hG?p=previewAngular UI路由器 - 不调用视图
路由器上有什么突出的东西吗?
deviceApp.config(function ($stateProvider) {
$stateProvider
.state('devices', {
views: {
'environment': {
template: 'Look I am a view!',
controller: 'DataCtrl'
},
'devicedetail': {
templateUrl: 'index.html',
controller: 'DeviceCtrl'
}
}
}
)}
);