$ionicView.loaded event fires for every $state.go(), is this supposed to happen?


#1

I have an app with navigation & routing and I just realized that $ionicView.loaded is fired for every $state transition, i.e. ui-sref="app.profile({id:{{id}}})". I expect this for $ionicView.enter, but not loaded

Is this expected behavior? This was causing some $rootScope.$on listeners to be be loaded (and fired) multiple times

See this codepen: http://codepen.io/anon/pen/mVaKwx?editors=1010


#2

It seems to fire for every cached view. It makes me reconsider how I use $ionicView.loaded