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'
}
}
}
)}
);