Could not resolve '…' from state ''

前端 未结 6 899
名媛妹妹
名媛妹妹 2020-12-07 18:49

This is first time i am trying to use ui-router.

Here is my app.js

angular.module(\'myApp\', [\'ionic\'])

.run(function($ionicPlatform) {
  $ionicPl         


        
6条回答
  •  不知归路
    2020-12-07 19:24

    As answered by Magus :

    the full path must me specified

    Abstract states can be used to add a prefix to all child state urls. But note that abstract still needs a ui-view for its children to populate. To do so you can simply add it inline.

    .state('app', {
       url: "/app",
       abstract: true,
       template: ''
    })
    

    For more information see documentation : https://github.com/angular-ui/ui-router/wiki/Nested-States-%26-Nested-Views

提交回复
热议问题