JSFiddle - React, Tailwind, and code Playground

by nishant969

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
<body ng-app="DirectiveExample">
    <div mydirective></div>
    <div mydirective></div>
</body>

JavaScript

var app = angular.module('DirectiveExample', []);

app.directive('mydirective', function () {
    return {
        template: '<marquee width="400"> <img src="http://angularjs.org/img/AngularJS-small.png" alt="AngularJS"> </marquee>',
    }
});