JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app>
<div ng-controller="mainCtrl">
<div ng-repeat="message in data.messages" ng-class="{{'className-' + message.type}}">
Repeat Me
</div>
</div>
</div>
JavaScript
function mainCtrl($scope) {
$scope.data = {}
$scope.data.messages = [
{
"type": "phone"},
{
"type": "email"},
{
"type": "meeting"},
{
"type": "note"}
]
}