JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.js"></script>
<div>
<div ng-controller="Ctrl">
</div>
</div>
JavaScript
var mod = angular.module('test', []);
class OkCtrl {
constructor($http) {
console.log('Ok: ', $http);
}
}
class BadCtrl {
method(wrongArgument) {
return a;
}
constructor($http) {
console.log('Bad: ', $http);
}
}
mod.controller('Ctrl', OkCtrl);
angular.bootstrap(document, ['test'])