Skip to content

Instantly share code, notes, and snippets.

@pankajparkar
Created April 1, 2019 02:40
Show Gist options
  • Save pankajparkar/b9c86787ae890f73862c9886add0ab82 to your computer and use it in GitHub Desktop.
Save pankajparkar/b9c86787ae890f73862c9886add0ab82 to your computer and use it in GitHub Desktop.
ControllerAs pattern
<div class="tab-pane" ng-show="tab.details.selected">
<h4>{{tab.details.title}}</h4>
<div ng-transclude></div>
</div>
<div class="tabbable">
<ul class="nav nav-tabs">
<li ng-repeat="pane in tabs.panes" ng-class="{active:pane.selected}">
<a href="" ng-click="tabs.select(pane)">
{{pane.title}}
</a>
</li>
</ul>
<div class="tab-content" ng-transclude></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment