<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script>
var app = angular.module('myApp', []);
app.controller('mycont', function($scope) {
$scope.firstNM = "pratik";
$scope.lastNM = "Deshai";
$scope.fullNM = $scope.firstNM + " " + $scope.lastNM;
});
</script>
</head>
<title>
Controller
</title>
<body>
<div ng-app="myApp" ng-controller="mycont">
First Name:
<input type="text" ng-model="firstNM">
<br>Lasr Name:
<input type="text" ng-model="lastNM">
<br>
<br>{{firstNM +" "+lastNM}} 1..............
<br>{{fullNM}} 2................
<br>
<span ng-bind="fullNM"></span> 3...........
</div>
</body>
</html>
I am new to angularJs Please help me in this. What is diff between this 1 & 2 & 3... change in textbox affect in 1 but not in 2 and 3 why so ?