JSFiddle - React, Tailwind, and code Playground

by nicolasmoise

HTML

<body ng-app="myApp">
<div ng-controller="parentCtrl">
    <!--{{message}}<input type="text" ng-model="message">-->
    {{obj.message}}<input type="text" ng-model="obj.message">
    <div ng-controller="childCtrl">
        <!--{{message}}<input type="text" ng-model="message">-->        
        {{obj.message}}<input type="text" ng-model="obj.message">
    </div>
</div>    
</body>

JavaScript

//Switch between commented/uncommented

angular.module('myApp', [])
.controller('parentCtrl', ['$scope', function($scope){
    //$scope.message="Hello";
    $scope.obj={message:"Hello"}
}])
.controller('childCtrl', ['$scope', function($scope){
}]);