I have the following element in my Angular template to generate a button bar with Font Awesome icons:
<li
data-ng-repeat="btn in navigation.buttonBar"
data-ng-click="{{ btn[1] }}"
class="btn btn-default" style="font-size: 30px; vertical-align: middle;"
tooltip-placement="bottom" tooltip="{{ btn[2] }}">
<i class="fa {{ btn[0] }}"></i>
</li>
navigation.buttonBar is the following array of arrays:
[
[ "fa-minus", "less()", "Show fewer cloud buttons." ],
[ "fa-plus", "more()", "Show more cloud buttons." ],
[ "fa-minus-square", "smaller()", "Make cloud buttons smaller." ],
[ "fa-plus-square", "bigger()", "Make cloud buttons bigger." ],
[ "fa-bars", "toggleShowStrings()", "Toggle display of matching strings." ],
[ "fa-refresh", "initialize();", "Load more content." ],
[ "fa-undo", "resetQuery()", "Clear query." ]
]
The text and icons render correctly, but the resulting buttons don't work. When I inspect the element, I see that btn[1] was expanded correctly. What do I replace {{ btn[1] }} with to make this work properly?