AngularJS:角UI路由器state.go上的离子棱角应用程序失败

,我打电话:AngularJS:角UI路由器state.go上的离子棱角应用程序失败

$state.go("main.crudlist"); 

,并具有响应以下异常:

Error: Could not resolve 'entry' from state 'main' 

at Object.transitionTo (angular-ui-router.min.js:3074)

at Object.go (angular-ui-router.min.js:3007)

at angular-ui-router.min.js:4057

at angular.min.js:138

at e (angular.min.js:40)

at angular.min.js:44

那是什么入口应该是什么意思?

这里的状态声明:

$ stateProvider .STATE( '登录',{ URL: '/登录', templateUrl: '内容/移动/模板/ login.html的', 控制器: “的LoginController” })

.state('settings', { 

url: '/settings',

templateUrl: 'Content/Mobile/templates/settings.html',

controller: 'SettingsController'

})

// setup an abstract state for the tabs directive

.state('main', {

url: "/main",

templateUrl: "Content/Mobile/templates/main.html",

abstract: true,

controller: 'MainController'

})

.state('main.home', {

url: '/home',

views: {

'main': {

templateUrl: 'Content/Mobile/templates/home.html',

controller: 'HomeController'

}

}

})

.state('main.settings', {

url: '/settings',

views: {

'main': {

templateUrl: 'Content/Mobile/templates/settings.html',

controller: 'SettingsController'

}

}

})

.state('main.crudlist', {

url: "/crudlist",

views: {

'main': {

templateUrl: "Content/Mobile/templates/crudlist.html",

controller: 'CrudListController'

}

}

})

回答:

最后,它有什么做的角度,但对离子HTML声明本身。

我:

<a ui-sref="entry" class="item" ng-repeat="leaf in menuleafs()" ng-click="loadApplication(leaf)">{{leaf.title}}</a> 

它切换到:

<a class="item" ng-repeat="leaf in menuleafs()" ng-click="loadApplication(leaf)">{{leaf.title}}</a> 

的伎俩。

抱歉,我们未能提供充足的信息

以上是 AngularJS:角UI路由器state.go上的离子棱角应用程序失败 的全部内容, 来源链接: utcz.com/qa/261766.html

回到顶部