JSFiddle - React, Tailwind, and code Playground
by qhoc
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js"></script>
<html ng-app="SimpleDirective">
<div ng-controller="Ctrl" test>
My content
<a>Link</a>
</div>
</html>
JavaScript
angular.module('SimpleDirective', [])
.controller('Ctrl', function($scope) {
$scope.customer = {
name: 'Naomi',
address: '1600 Amphitheatre'
};
})
.directive('myCustomer', function() {
return function(scope, element, attrs) {
console.log('test');
};
});