JSFiddle - React, Tailwind, and code Playground

by Mikey

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.min.js"></script>
<div id="app" ng-controller="MainCtrl">
  <test></test>
</div>

JavaScript

angular.module('myApp', [])
	.controller('MainCtrl', function ($scope) {
    console.log($scope.$id, 'ctrl');
  })
  .directive('test', function () {
  	return {
      //scope: true,
      controller: function ($scope) {
        console.log($scope.$id, 'directive');
      }
    }
  });
  
angular.bootstrap(document.querySelector('#app'), ['myApp']);