I have a strange setup with ui-router. Allow me to poorly illustrate as it is a very complicated layout. (Think Google Image search/expand) When an item
is clicked the ng-if = true and shows item details beneath the row.
category //horizontal row of items
----------------------
item item item etc
----------------------
<ui-view ng-if="item-equals-category"> //ui-view under horizontal row
category
----------------------
item item item etc
----------------------
<ui-view ng-if="item-equals-category2>
The issue I'm having is this: The contained code executes 21 times (21 rows) despite being hidden via ng-if. This is creating issues with things like Google API because it makes 21 calls to API and gets blocked. Is there a way to do this layout without 21 ui-views. Just one UI view that is inserted under selected items row.