1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Angular Test #2</title>
<script src="lib/angular.min.js"></script>
<script src="controllers/test-angular-2.js"></script>
</head>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
<p>Input something in the input box:</p>
<p>Name: <input type="text" ng-model="name"></p>
<label for="fullName">A Name:</label>
<input id="fullName" ng-model="first" />
<p ng-bind="name"></p>
{{first + " " + last}}
</div>
</body>
</html>
|