diff options
| -rw-r--r-- | public/partials/home.html | 4 | ||||
| -rw-r--r-- | public/scripts/controllers.js | 9 | 
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', | 
