JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="ClassExample" ng-controller="someController">
    <span class="myclass myotherclass">target span</span><br/>
    <span class="myotherclass">other span</span>
</div>

JavaScript

angular.module('ClassExample',[]).directive('myclass', function() {
    return {
        template:'hello world',
        restrict: 'C'
    };

}).controller('someController',function() {
    
});