I have added Angular UI Bootstrap Tabs to my page, and for tab I have a custom directive with different views and logic.
Something like this
<uib-tabset justified="true" class="tabs">
<uib-tab>
<uib-tab-heading>
<i class="fa fa-home"></i> Home
</uib-tab-heading>
<routes-view selected-grid-type="home"></routes-view>
</uib-tab>
<uib-tab>
<uib-tab-heading>
<i class="fa fa-calendar"></i> Planned
</uib-tab-heading>
<test-view type="planned"></routes-view>
</uib-tab>
<uib-tab>
<uib-tab-heading>
<i class="fa fa-calendar-plus-o"></i> Actual
</uib-tab-heading>
<myplan-view type="actual"></routes-view>
</uib-tab>
...
Now when my home page view loads all content on each tabs gets loaded, and this is too much for initial load. Ideally I only want to load the content of the tab when it is click on