JSFiddle - React, Tailwind, and code Playground

by vural kaya

HTML

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

JavaScript

var app = angular.module('app', []);
app.directive('ng', function () {
    return {
        restrict: 'EA',
        template: '<div>{{ad}} {{soyad}}</div>',
        link: function(scope,elem,attr){
            scope.ad = 'Vural';
            scope.soyad = 'Usenc';
        }
    };
});