mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-08 05:31:51 +02:00
Update & Bugfixes
- added comments - updated favicon - updated example on
This commit is contained in:
parent
69559ed8aa
commit
309540a322
27 changed files with 87 additions and 22 deletions
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue