JSFiddle - React, Tailwind, and code Playground

by Alex Romero

HTML

<div ng-app="app">
    <bill>
    
    <bill>
        
</div>

JavaScript

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

app.controller("AppCtrl", function(){
    
})

app.directive('bill', function () {
    return {
        restrict: 'E',
        template: '<div><div draggable>hello {{msg}}</div></div>',
        link: function (scope, elem, attrs) {
            // scope.status = attrs.bill.getStatus();
            scope.msg = "world!";
        }
    }
})