GUI - Angular:: More sample HTML for form widgets etc.

Change-Id: Ibfc83aae8282e3d99b53a03ab0e13ef2579e990c
diff --git a/web/gui/src/main/webapp/_sdh/ng-examples/ch04-04-two-forms-databinding.html b/web/gui/src/main/webapp/_sdh/ng-examples/ch04-04-two-forms-databinding.html
new file mode 100644
index 0000000..9cb4961
--- /dev/null
+++ b/web/gui/src/main/webapp/_sdh/ng-examples/ch04-04-two-forms-databinding.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html ng-app="notesApp">
+<head>
+    <title>Notes App</title>
+    <script src="../../tp/angular.js"></script>
+    <style>
+        span {
+            background-color: #cce;
+        }
+    </style>
+</head>
+<body ng-controller="MainCtrl as ctrl">
+
+<form ng-submit="ctrl.submit1()">
+    <input type="text" placeholder="username" ng-model="ctrl.username"/>
+    <input type="password" placeholder="password" ng-model="ctrl.password"/>
+    <input type="submit" value="Submit"/>
+</form>
+
+<!-- Better way of structuring the form data -->
+<form ng-submit="ctrl.submit2()">
+    <input type="text" placeholder="username" ng-model="ctrl.user.username"/>
+    <input type="password" placeholder="password" ng-model="ctrl.user.password"/>
+    <input type="submit" value="Submit"/>
+</form>
+
+<script type="text/javascript">
+    angular.module('notesApp', [])
+        .controller('MainCtrl', [function () {
+            var self = this;
+
+            self.submit1 = function () {
+                // create user object to send to server
+                var user = {username: self.username, password: self.password};
+                console.log('First submit: ', user);
+            };
+            self.submit2 = function () {
+                console.log('Second submit: ', self.user);
+            };
+        }]);
+</script>
+
+</body>
+</html>