Created
September 11, 2015 00:02
-
-
Save elad/220df70696633085a91b to your computer and use it in GitHub Desktop.
Angular + Bootstrap tabs, stacked on the side
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="nav nav-pills nav-stacked"> | |
<li class="active"> | |
<a href="" ng-click="vm.activeTab = 'one'" data-toggle="pill"> | |
One header | |
</a> | |
</li> | |
<li> | |
<a href="" ng-click="vm.activeTab = 'two'" data-toggle="pill"> | |
Two header | |
</a> | |
</li> | |
<li> | |
<a href="" ng-click="vm.activeTab = 'three'" data-toggle="pill"> | |
Three header | |
</a> | |
</li> | |
</ul> | |
<div class="tab-content"> | |
<div class="tab-pane" ng-class="{ active: !vm.activeTab || vm.activeTab == 'one' }"> | |
One content | |
</div> | |
<div class="tab-pane" ng-class="{ active: vm.activeTab == 'two' }"> | |
Two content | |
</div> | |
<div class="tab-pane" ng-class="{ active: vm.activeTab == 'three' }"> | |
Three content | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
poapozp
zlkzza