Using ng-repeat in my markup, I am trying to add text to each li element and also include an additional class (besides the 'fa' class). This is what I have done so far:
<ul class='social-icons' ng-repeat="social in myCtrl.socialArr">
<li><i class="fa" ng-class={{social.iconClass}}></i><label>{{social.label}}</label></li>
</ul>
However, it's not functioning as expected.
In my controller, I have the following code:
self.socialArr = [
{
label: 'Facebook',
url: 'facebook.com/',
iconClass: 'fa-facebook'
},{
label: 'Twitter',
url: 'twitter.com/',
iconClass: 'fa-twitter'
}...