JSFiddle - React, Tailwind, and code Playground

by Michael Bazos

HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.js"></script>
<div ng-app="myApp">
    <div class="rotator">
        <text-rotator>
            <span class="word" ng-repeat="item in sentence.options">{{item}}</span>
        </text-rotator>
    </div>
</div>

JavaScript

angular.module('myApp', []);

angular.module('myApp').directive('textRotator', function () {
    return {
        restrict: 'AE',
        link: function (scope, element) {
            debugger;
        }
    }
});