-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathAngularEx2.html
47 lines (47 loc) · 1.55 KB
/
AngularEx2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html ng-app>
<head>
<title>Page {{2+1}}</title>
<script src="../node_modules/angular/angular.js"></script>
</head>
<body >
<form>
<fieldset>
<legend>Register Product</legend>
<dl>
<dt>Name</dt>
<dd><input type="text" ng-model="txtName"></dd>
<dt>Price</dt>
<dd><input type="text" ng-model="txtPrice"></dd>
<dt>Is In Stock</dt>
<dd>
<input type="checkbox" ng-model="Stock"> Yes
</dd>
<dt>Shipped To</dt>
<dd>
<select ng-model="lstCities">
<option>Delhi</option>
<option>Hyd</option>
</select>
</dd>
</dl>
</fieldset>
<br> <br>
<fieldset>
<legend>Details</legend>
<table width="400" border="1">
<th>Name</th>
<th>Price</th>
<th>Is In Stock</th>
<th>Shipped To</th>
<tr>
<td>{{txtName}}</td>
<td>{{txtPrice}}</td>
<td>{{(Stock==true)?"Available":"Out of Stock"}}</td>
<td ng-bind="lstCities"></td>
</tr>
</table>
</fieldset>
</form>
</body>
</html>