JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="test" ng-controller="testController">
    
    
    <input type="button" ng-click="testFunc2()" value="test2" />
      <input type="button" ng-click="testFunc1()" value="test1" />
</div>

JavaScript

var testModule = angular.module('test',[ ]);
testModule.controller('common' , function(  $scope ) {
    $scope.testFunc1 = function(){
    
        alert("test1");
   
    };

    
});
testModule.controller('testController', function( $scope , $controller ){ 
  //inherit
    $controller('common', {
        $scope: $scope
    });
    
    $scope.testFunc2 = function (){
    alert("test2");
    };

});

alert('init');