JSFiddle - React, Tailwind, and code Playground
by David Barreto
HTML
<body ng-app="myApp">
<div ng-controller="MyController">
<input type="text" ng-model="myVar1.value" /> {{ myVar1.value }}
<br />
<input type="text" ng-model="myVar2.value" /> {{ myVar2.value }}
<br />
{{ myVar3.value }}
</div>
</body>
JavaScript
var myApp = angular.module('myApp', []);
myApp.controller('MyController', ['$scope', function($scope){
$scope.myVar1 = {};
$scope.myVar2 = {};
$scope.myVar3 = $scope.myVar1;
}]);