I've incorporated the code below into my Angular template to create a button bar containing 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 consists of the following array groupings:
[
[ "fa-minus", "less()", "Display fewer cloud buttons." ],
[ "fa-plus", "more()", "Show more cloud buttons." ],
[ "fa-minus-square", "smaller()", "Reduce size of cloud buttons." ],
[ "fa-plus-square", "bigger()", "Enlarge cloud buttons." ],
[ "fa-bars", "toggleShowStrings()", "Switch on/off matching strings display." ],
[ "fa-refresh", "initialize();", "Load additional content." ],
[ "fa-undo", "resetQuery()", "Clear search query." ]
]
While the text and icons appear correctly, the buttons themselves are nonfunctional. Inspecting the element reveals that btn[1]
has been expanded properly. What is the correct replacement for {{ btn[1] }}
to ensure proper functionality?