JSFiddle - React, Tailwind, and code Playground

HTML

<head>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>
    <script>
        angular.module('madness', [])
            .controller('ExampleCtrl', function($scope, ExampleService) { //в этой функции аргументы можно поменять местами, поведение код не изменится
            $scope.exampleValue = 'Hello!';
            ExampleService.yell();
        })
            .service('ExampleService', function() {
            this.yell = function() {
                alert('yelling!');
            }
        });
    </script>
</head>


<body ng-app='madness'>
    <div ng-controller="ExampleCtrl">{{ exampleValue }}</div>
</body>