I am new to angular. In my single page web app, I have two tabs with ng-infinite-scroll in each of them. The two tabs are traversed between using a nav-bar,
<div ng-show="$state.includes('base.videolist')||$state.includes('base.movielist') ">
<ul class="nav navbar-fixed-top roboto nav-tabs">
<li ui-sref="base.videolist" ui-sref-active="active"><a>Videos</a></li>
<li ui-sref="base.movielist" ui-sref-active="active"><a>Movies</a></li>
</ul>
</div>
and each tab resides in two ui-views as shown below.
<div id="bvl" ui-view="videolist" ng-show="$state.includes('base.videolist')"></div>
<div id="bml" ui-view="movielist" ng-show="$state.includes('base.movielist')"></div>
When using ng-show, the height of the hidden div is set to 0 by angular. thereby triggering the infinite-scroll infintely.
I dont want to use ng-if because i want to maintain the scroll state of the lists.
How to handle this?
PS. i use sticky states for both the lists to maintain states between master detail view of the list elements.