JSFiddle - React, Tailwind, and code Playground
by guilhermenagatomo
HTML
<div ng-app='App'>
<div ng-controller='MainCtrl'>
<div ng-controller='CtrlOne'>
CtrlOne: {{foo}}
</div>
<div ng-controller='CtrlTwo'>
CtrlTwo: {{foo}}
</div>
</div>
</div>
JavaScript
angular.module('App', [])
.controller('MainCtrl', ['$scope', function($scope){
$scope.foo = 'foo';
}])
.controller('CtrlOne', ['$scope', function($scope){
}])
.controller('CtrlTwo', ['$scope', function($scope){
$scope.foo = 'bar';
}]);