Could not resolve '…' from state ''

前端 未结 6 882
名媛妹妹
名媛妹妹 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:36

    I've just had this same issue with Ionic.

    It turns out nothing was wrong with my code, I simply had to quit the ionic serve session and run ionic serve again.

    After going back into the app, my states worked fine.

    I would also suggest pressing save on your app.js file a few times if you are running gulp, to make sure everything gets re-compiled.

提交回复
热议问题