JSFiddle - React, Tailwind, and code Playground
by krimple
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.3/angular.js"></script>
<div ng-app='myApp'>
<p>Say hello, Angular!</p>
<p><ng-message message="Hiya!"/></p>
</div>
JavaScript
angular.module('myApp', [])
.directive('ngMessage', function() {
return {
link: function(scope, element, attrs) {
scope.message = attrs.message
},
restrict: 'E',
template: '{{message}}'
};
});