JSFiddle - React, Tailwind, and code Playground
by kyleshen
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script>
<div ng-app="app" ng_controller="testCtrl">
<mytest test="data"></mytest>
</div>
JavaScript
var app = angular.module('app', []);
var testCtrl = function($scope)
{
$scope.data = "XXXX";
}
app.directive("mytest", function () {
return {
scope: {
test: '='
},
restrict: "E",
template: "<div>{{ test }}</div>"
};
});