mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-11 19:04:20 +01:00
With this change all components, which used data services before, now use abstract classes of service interfaces, mock services extend interface services, CoreModule contains code to inject a needed implementation of some service.
33 lines
500 B
TypeScript
33 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',
|
|
];
|
|
}
|
|
}
|