JSFiddle - React, Tailwind, and code Playground
by Son Che Dinh
HTML
<body ng-app="myapp">
<div ng-controller="MyController">
<div my-directive></div>
</div>
</body>
JavaScript
angular.module('myapp', [])
.controller('MyController', function($scope) {})
.directive('myDirective', function() {
return {
template: '<h1>Đây là directive tự tạo</h1>'
};
});