mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-11 19:04:20 +01:00
34 lines
500 B
TypeScript
34 lines
500 B
TypeScript
|
|
import { Injectable } from '@angular/core';
|
||
|
|
|
||
|
|
@Injectable()
|
||
|
|
export class PeriodsService {
|
||
|
|
getYears() {
|
||
|
|
return [
|
||
|
|
'2010', '2011', '2012',
|
||
|
|
'2013', '2014', '2015',
|
||
|
|
'2016', '2017', '2018',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
getMonths() {
|
||
|
|
return [
|
||
|
|
'Jan', 'Feb', 'Mar',
|
||
|
|
'Apr', 'May', 'Jun',
|
||
|
|
'Jul', 'Aug', 'Sep',
|
||
|
|
'Oct', 'Nov', 'Dec',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
getWeeks() {
|
||
|
|
return [
|
||
|
|
'Mon',
|
||
|
|
'Tue',
|
||
|
|
'Wed',
|
||
|
|
'Thu',
|
||
|
|
'Fri',
|
||
|
|
'Sat',
|
||
|
|
'Sun',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|