我有两个州,一个是抽象的父母,另一个是孩子。没什么好看的,
.controller('AppCtrl', ['$scope','$state','$stateParams','$rootScope', function($scope,$state,$stateParams,$rootScope){
}]);
控制器:
TypeError: Cannot read property 'controller' of undefined
at IonicModule.controller.self.update (ionic.bundle.js:51695)
at IonicModule.controller.self.beforeEnter (ionic.bundle.js:52135)
at IonicModule.controller.self.beforeEnter (ionic.bundle.js:54079)
at Scope.$get.Scope.$emit (ionic.bundle.js:24919)
at Object.IonicModule.factory.ionicViewSwitcher.create.switcher.emit (ionic.bundle.js:50634)
at Object.IonicModule.factory.ionicViewSwitcher.create.switcher.transition (ionic.bundle.js:50492)
at ionic.bundle.js:52121
at ionic.bundle.js:50370
at Object.IonicModule.factory.ionicViewSwitcher.create.switcher.render (ionic.bundle.js:50459)
at Object.IonicModule.factory.ionicViewSwitcher.create.switcher.init (ionic.bundle.js:50369)
我得到TypeRrror:无法读取未定义的属性控制器。我有控制器,实际上正在初始化。它究竟出了什么问题?
此外,如果我删除嵌套状态,它没有任何错误工作正常。但我需要嵌套状态。 错误如下所示:
text