JSFiddle - React, Tailwind, and code Playground

HTML

<body ng-app="APP">
    <div ng-controller="myController">
    </div>
</body>

JavaScript

angular.module('APP', []).controller('myController', function($scope) {

    $scope.test = function() {
        alert('Weird behaviour!')
    }

    (function() {} ()); //if you comment self-executing function console will be empty

});