JSFiddle - React, Tailwind, and code Playground
by hannahh
HTML
<div ng-app="testDirective">
<div ng-controller="Ctrl">
<nextree-directive company-info={{name}}>
{{locate}}
</nextree-directive>
</div>
</div>
JavaScript
angular.module('testDirective', [])
.controller('Ctrl', function($scope) {
$scope.name = 'Nextree';
$scope.locate = 'Gasan';
})
.directive('nextreeDirective', function() {
return {
restrict: 'E',
scope: {
name: '@companyInfo'
}
};
});