mirror of
https://github.com/arnaucube/openEventsPlatformApp.git
synced 2026-02-08 04:06:40 +01:00
getEvents by following users, and some pages
This commit is contained in:
@@ -6,4 +6,16 @@ angular.module('app.calendar', ['pascalprecht.translate'])
|
||||
$scope.dayClick = function(date) {
|
||||
window.location="#/app/byDay/" + date;
|
||||
};
|
||||
|
||||
var startOfWeek = moment().startOf('month');
|
||||
var endOfWeek = moment().endOf('month');
|
||||
$scope.days = [];
|
||||
var day = startOfWeek;
|
||||
|
||||
while (day <= endOfWeek) {
|
||||
$scope.days.push(new Date(day.toDate()));
|
||||
day = day.clone().add(1, 'd');
|
||||
}
|
||||
|
||||
console.log($scope.days);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user