JSFiddle - React, Tailwind, and code Playground
by nomadev
HTML
<div ng-app="pippo">
<input type="text" ng-model="model" prima />
</div>
JavaScript
var app = angular.module('pippo', []);
app.directive('prima', function() {
$scope.model = '';
return {
link: function($scope, $attrs, $element, $ngModel) {
console.log('eppe!')
},
restrict: 'A',
scope: true,
require: 'ngModel'
}
})