Update & Bugfixes

- added comments
- updated favicon
- updated example on
This commit is contained in:
Luke Vella 2015-01-28 11:46:03 +01:00
parent 69559ed8aa
commit 309540a322
27 changed files with 87 additions and 22 deletions

View file

@ -3,7 +3,7 @@ angular.module('rallly')
var id = $state.params.id;
// Get Event
$scope.event = Event.get({id:id}, function(data){
// Set the page title to the event title
// Set the page title to the event title
Title.set($scope.event.title);
// Generate event url - i.e. http://rallly.co/jF9F_Fd
$scope.eventUrl = $state.href('event', {
@ -11,17 +11,6 @@ angular.module('rallly')
}, {
absolute : true
});
var examplesNames = ['John Example', 'Jane Specimen','Mark Instance', 'Mary Case'];
$scope.event.examples = [];
for (var i = 0; i < examplesNames.length; i++){
var example = { name : examplesNames[i] };
example.dates = [];
for (var j = 0; j < $scope.event.dates.length; j++){
var answer = Math.random()<.5;
example.dates[j] = answer;
}
$scope.event.examples.push(example);
}
}, function(e){
$state.go('notfound');
});