JSFiddle - React, Tailwind, and code Playground

HTML

<p><em>Check the console</em></p>
<div ng-app="myApp">
    <div ng-form="myForm">
        <my-input form="myForm"></my-input>
    </div>
</div>

JavaScript

var app = angular.module('myApp', []);

app.directive('myInput', function() {
    return {
        restrict: 'E',
        scope: {
            form: '='
        },
        template: '<span>Hello World</span>',
        link: function(scope, element, attrs) {
            console.log(scope.form);
        }
    };
});