JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="app">
<div omg-test ng-bind="content">@</div>
</div>
JavaScript
var app = angular.module('app', []);
app.directive('omgTest', function() {
return {
//scope: {},
controller: function($scope) {
$scope.content = 'content';
},
link: function postLink($scope, $element) {
$element.on('click', function() {
$scope.content += '1';
$scope.$apply();
});
}
};
});