I think I need a break and cup of tea on this one.
<tr ng-repeat="participant in globalData" ng-controller="GlobalDataRowController" ng-class="rowStatus">
<td>
<li class="dropdown">
<a class="dropdown-toggle">
Click me for a dropdown, yo!
</a>
<ul class="dropdown-menu">
<li ng-repeat="choice in participant.SourceDescriptions">
<a>{{choice}}</a>
</li>
</ul>
</li>
....
I have this code. When the this snippet is placed outside the repeat scope it works fine. But inside the repeat nothing happens when I click.
I'm attempting to use angular-ui but I'd rather not have it just for this job. And I don't think I'm looking at the problem correctly anyway.
I've been looking back over previous questions and thought I'd wrap this one up.
I took the approach of using a directive here. It doesn't look perfect but it's doing the job for now. So in the view...
And the directive...