Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49229

$ionicView.loaded problem

$
0
0

@taylormaster wrote:

Hi, i have a problem with $ionicView.loaded.
there is a button-bar in sub-header:

<div class="bar bar-subheader">
<div class="button-bar">
      <a class="button icon ion-images" ui-sref="app.competition"></a>
      <a class="button icon ion-heart" ui-sref="app.fav"></a>
      <a class="button icon ion-upload" ui-sref="app.upload"></a>
    </div>
    </div>

and three state:

  .state('app.competition', {
    url: '/competition',
    views: {
      'menuContent': {
        templateUrl: 'templates/competition.html',
        controller: 'competition'
      }
    }
  })
 .state('app.fav', {
url: '/fav',
views: {
  'menuContent': {
    templateUrl: 'templates/fav.html',
    controller: 'FavCtrl'
  }
}
  })
  .state('app.upload', {
url: '/upload',
views: {
  'menuContent': {
    templateUrl: 'templates/upload.html',
    controller: 'UploadCtrl'
  }
}
})

when i click app.fav state, then $ionicView.loaded ok, this is first run, but if i click back app.competition and back again app.fav then run $ionicView.loaded again. Is this bug?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>