add test files for Angular.js (not finished)
[src/app-framework-binder.git] / test / angular.html
diff --git a/test/angular.html b/test/angular.html
new file mode 100644 (file)
index 0000000..f7e2575
--- /dev/null
@@ -0,0 +1,21 @@
+<!doctype html>
+<html>
+<body>
+  <div ng-controller="MyController">
+    Hello {{greetMe}}!
+  </div>
+  <script src="http://code.angularjs.org/1.5.5/angular.js"></script>
+  <script src="AfbAngular.js"></script>
+
+  <script>
+    angular.module('myApp', [])
+      .controller('MyController', ['$scope', function ($scope) {
+        $scope.greetMe = 'World';
+      }]);
+
+    angular.element(document).ready(function() {
+      angular.bootstrap(document, ['myApp']);
+    });
+  </script>
+</body>
+</html>