I'm in the middle of trying to get my head around the data binding capabilities of AngularJS and have sort of a newbie question:
In the sample below, when I type a name into the textbox, the greeting doesn't update.
<html ng-app>
<head>
<script src="js/angular.js"></script>
<script>
function myCtl($scope){
$scope.person=$scope.fname;
}
</script>
</head>
<body>
<div ng-controller="myCtl">
<input ng-model="fname"/>
<br/>
Hello, {{person}}
</div>
</body>
When I change
Hello, {{person}}
to
Hello, {{fname}}
The greeting updates as I type. I'm confused about why the second syntax works but not the first.

