Sample HTML using angular directives.
Change-Id: I94d7d9fadf9086003646446fedd61a318b689dcb
diff --git a/web/gui/src/main/webapp/_sdh/ng-examples/ch02-03-hello-controller.html b/web/gui/src/main/webapp/_sdh/ng-examples/ch02-03-hello-controller.html
new file mode 100644
index 0000000..c206bf8
--- /dev/null
+++ b/web/gui/src/main/webapp/_sdh/ng-examples/ch02-03-hello-controller.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html ng-app="notesApp">
+<head>
+ <title>Notes App</title>
+ <script src="../../tp/angular.js"></script>
+</head>
+<body ng-controller="MainCtrl as ctrl">
+ {{ctrl.helloMsg}} AngularJS.
+ <br/>
+ {{ctrl.goodbyeMsg}} AngularJS
+
+ <script type="text/javascript">
+ angular.module('notesApp', [])
+ .controller('MainCtrl', [function () {
+ this.helloMsg = 'Hello ';
+ var goodbyeMsg = 'Goodbye ';
+ }]);
+ </script>
+
+</body>
+</html>