aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Chiu2014-10-30 23:04:33 -0400
committerEvan Chiu2014-10-30 23:04:33 -0400
commitb6d4941e33d44f31839114d58e038ad27b8f5f5c (patch)
treec101cfac80735f7f02169c997b900cb4bc44e33e
parent9769950393d80f97f9904ebb04debc975e608de2 (diff)
downloadsipping-point-master.tar.bz2
Adding some hardcoded eventsHEADmaster
-rw-r--r--public/partials/home.html4
-rw-r--r--public/scripts/controllers.js9
2 files changed, 12 insertions, 1 deletions
diff --git a/public/partials/home.html b/public/partials/home.html
index 4c90c62..2ac661b 100644
--- a/public/partials/home.html
+++ b/public/partials/home.html
@@ -1,5 +1,7 @@
<h1>{{title}}</h1>
<h2>Events</h2>
-
+<div ng-repeat="event in events">
+ <span class="name">{{event.name}}</span>
+</div>
<h2>New</h2>
<a href="#/new-event" type="button" class="btn btn-default btn-info">+Event</button>
diff --git a/public/scripts/controllers.js b/public/scripts/controllers.js
index 048853e..0dccb56 100644
--- a/public/scripts/controllers.js
+++ b/public/scripts/controllers.js
@@ -12,6 +12,15 @@ angular.module('app.controllers', [])
['$scope', '$routeParams', '$http',
function($scope, $routeParams, $http) {
$scope.title='Home'
+ $scope.events = [
+ {
+ 'name': 'Mixed Drinks at Roosters 6pm tomorrow'
+ }, {
+ 'name': 'Wine Flights at Vino X 8pm Tuesday'
+ }, {
+ 'name': 'Craft Beer Tasting at Mad Tree Brewers 6pm Friday'
+ }
+ ]
}])
.controller('newController',
['$scope', '$routeParams', '$http',