It looks like I’m doing something wrong, for me the viewState.viewEnter event is not triggering. I have my <view>
elements inside divs because I use an ng-switch to load different “partials” depending on what I have to display. Something like this:
<div ng-switch on="item.type">
<div ng-switch-when="page_content">
<div ng-include="'views/_default.html'"></div>
</div>
<div ng-switch-when="map">
<div ng-include="'views/_map.html'"></div>
</div>
<div ng-switch-when="form">
<div ng-include="'views/_form.html'"></div>
</div>
</div>
And inside each partial I have the content wrapped in <view>
.
I something wrong with this approach?
Edit:
Found the problem, I’m using ui-view and not nav-view because I don’t want the back button to appear in the navigation bar. Tried using nav-view and set the attribute hide-back-button="true"
to the <view>
but it doesn’t work.
Edit 2:
Did a bower update
and guess what? Now it’s working even without your hack. Maybe it’s something in the latest angular that fixed it, I tried angular 1.2.9 and it still worked.