diff --git a/app.js b/app.js new file mode 100644 index 0000000..2cd56dc --- /dev/null +++ b/app.js @@ -0,0 +1,18 @@ +angular.module("happyApp",[]) + .controller("HappyController", HappyController) + +function HappyController ($scope){ + + $scope.allHappiness = []; + + $scope.addNewHappyness = function () { + $scope.date = new Date(); + + $scope.allHappiness.push({ + status: $scope.checkboxSelection, + date: $scope.date + }); + + $scope.checkboxSelection = ''; + }; +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..fa73e75 --- /dev/null +++ b/index.html @@ -0,0 +1,63 @@ + + +
+