JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="amodule">
<div>
:-(
<input adirective ng-model="$parent.v1">
selected = {{v1}}
</div>
<div>
:-)
<input ng-model="v2">
selected = {{v2}}
</div>
</div>
JavaScript
var mod = angular.module('amodule', []);
mod.directive('adirective', function ($timeout) {
return {
restrict: 'A',
scope:{
vv: '='
},
link: function (scope, element, attr) {
},
template: ``
};
});