JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="" >
<div ng-controller="FirstCtrl">
<button ng-click="clickme()">Click Me</button>
</div>
<div ng-controller="TwotCtrl">
<button ng-click="clickme()">Click Me</button>
</div>
</div>
JavaScript
function OtherCtrl($scope) {
$scope.clickme = function() {
alert('1');
}
}
function FirstCtrl($scope, $injector) {
$injector.invoke(OtherCtrl, this, {$scope: $scope});
}
function TwotCtrl($scope, $controller) {
$controller('OtherCtrl', {$scope: $scope})
}