I have 4 different classes that need to be added to a div
inside a ng-repeat
.
<li ng-repeat="post in posts">
<span class="color-RANDOM-VALUE">{{post.title}}</span>
</li>
Once I have the loop running, it should look like:
<li>
<span class="color-blue">Title</span>
</li>
<li>
<span class="color-yellow">Title</span>
</li>
<li>
<span class="color-purple">Title</span>
</li>
<li>
<span class="color-red">Title</span>
</li>
Any suggestions on the best way to do that?