aboutsummaryrefslogtreecommitdiffstats
path: root/test/angular.html
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-09 14:28:42 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-09 14:30:00 +0200
commit19fb390ec60890d55bafe7a4c887b1453509f7ef (patch)
tree168c15a2eec646d73d92668972687a089507e151 /test/angular.html
parentbd68881a7977d2fe63d4ca85b757ed9c127ec21d (diff)
add test files for Angular.js (not finished)
Change-Id: I179687911193fee2bd732db5d42f2748dcedd9f8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'test/angular.html')
-rw-r--r--test/angular.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/angular.html b/test/angular.html
new file mode 100644
index 00000000..f7e25756
--- /dev/null
+++ b/test/angular.html
@@ -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>