From 4cb49bf12bf9b1d73885d47b1aacacf07e3103cd Mon Sep 17 00:00:00 2001 From: Tero Parviainen Date: Thu, 5 Nov 2015 10:28:15 +0100 Subject: [PATCH] Example App --- example-app/app.js | 10 ++++++++++ example-app/index.html | 14 ++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 example-app/app.js create mode 100644 example-app/index.html diff --git a/example-app/app.js b/example-app/app.js new file mode 100644 index 00000000..5ff80695 --- /dev/null +++ b/example-app/app.js @@ -0,0 +1,10 @@ +angular.module('myExampleApp', []) + .controller('ExampleController', function() { + this.counter = 1; + this.increment = function() { + this.counter++; + }; + this.decrement = function() { + this.counter--; + }; + }); diff --git a/example-app/index.html b/example-app/index.html new file mode 100644 index 00000000..b03d7bf9 --- /dev/null +++ b/example-app/index.html @@ -0,0 +1,14 @@ + + + + + +
+ {{ctrl.counter}} + + +
+ + + +