JSFiddle - React, Tailwind, and code Playground
HTML
<html ng-app="myApp">
<body ng-controller="angularJs">
<a></a>
<a></a>
<a></a>
<a></a>
</body>
</html>
JavaScript
var app = angular.module('myApp',[]);
app.controller('angularJs',function($scope){
$scope.name = '';
});
app.directive('a',function(){
return {
restrict : 'E',
scope : {},
template : '<input type="text" ng-model="name"/>{{name}}<br>'
};
});