I've two codes in my HTML structure.
First one is:
<!DOCTYPE html>
<html lang="en">
<head>
<script src="angular.min.js"></script>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div ng-app>
<p>Name: <input type="text" ng-model="name"></p>
<p>{{name}}</p>
</div>
</body>
</html>
and another is:
<!DOCTYPE html>
<html lang="en">
<head>
<script src="angular.min.js"></script>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div ng-app>
<p>Name: <input type="text" ng-model="name"></p>
<p ng-bind="name"></p>
</div>
</body>
</html>
Both are giving the same output then, where the difference lies?