aboutsummaryrefslogtreecommitdiffstats
path: root/alias-angular/app/index.html
diff options
context:
space:
mode:
authorZaran <zaran.krleza@gmail.com>2012-05-01 22:30:16 -0700
committerZaran <zaran.krleza@gmail.com>2012-05-01 22:30:16 -0700
commit8ffa261653584518f11b733fd224c0ff46b8a4b1 (patch)
tree33d1fa9aed261dea792b7bdadfd266a67ebabe2c /alias-angular/app/index.html
parent3bb395e8e315b4e61ce5e661f0606bb09d861c08 (diff)
downloadalias-8ffa261653584518f11b733fd224c0ff46b8a4b1.tar.gz
Working version of the tabs
Diffstat (limited to 'alias-angular/app/index.html')
-rw-r--r--alias-angular/app/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/alias-angular/app/index.html b/alias-angular/app/index.html
index 6ed6488..5cabe92 100644
--- a/alias-angular/app/index.html
+++ b/alias-angular/app/index.html
@@ -54,13 +54,13 @@
</div>
<div id="main" ng-controller="MsgCtl">
<ul class="nav nav-tabs">
- <li ng-repeat="conversation in conversations" ng-click="activate(conversation)">
+ <li ng-repeat="conversation in conversations" ng-class="isActive(conversation)" ng-click="activate(conversation)">
<!-- why does writing ng-click="activeConversation=conversation" doesn't work? -->
<a href="#repeat">{{conversation}} <i class="icon-remove" ng-click="delete(conversation)"></i></a>
</li>
</ul>
<div class="tab-content">
- <div class="tab-pane" id="repeat">Je suis {{activeConversation}}</div>
+ <div class="tab-pane" ng-class="isActive(conversation)" ng-repeat="conversation in conversations">{{conversation}}</div>
</div>
</div>
<script src="lib/jquery-1.7.2.min.js"></script>