From 02e6c893f50cdc97f2b75ebe22cac59128dd32fd Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Sat, 8 Oct 2016 09:22:13 -0400 Subject: [PATCH] init --- README.md | 0 index.html | 16 ++++++++++++++++ script.js | 21 +++++++++++++++++++++ style.css | 2 ++ 4 files changed, 39 insertions(+) create mode 100644 README.md create mode 100644 index.html create mode 100644 script.js create mode 100644 style.css diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/index.html b/index.html new file mode 100644 index 0000000..ef6f970 --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ + + + + + + + + + + +

Hi! my name is {{ username }}

+ + + + + diff --git a/script.js b/script.js new file mode 100644 index 0000000..c68f162 --- /dev/null +++ b/script.js @@ -0,0 +1,21 @@ +// Code goes here + +(function(){ + var app = angular.module('awesome', []); + + var mainController = function($scope){ + if(!$scope.username){ + + $scope.username = "defaults brah"; + } + $scope.runMe = function(){ + alert($scope.username); + } + }; + + + app.controller('awesome', mainController); + + + +})(); diff --git a/style.css b/style.css new file mode 100644 index 0000000..553d571 --- /dev/null +++ b/style.css @@ -0,0 +1,2 @@ +/* Styles go here */ +