File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
projects/ng-mat-components/src/lib/fs-calendar Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,24 @@ export const moment = moment_;
99 providedIn : 'root' ,
1010} )
1111export class FsCalendarService {
12- constructor ( @Inject ( LOCALE_ID ) private appLocale : string ) {
13- moment . locale ( this . appLocale . substring ( 0 , 2 ) ) ;
14- }
15-
16- monthNames = moment . monthsShort ( ) ;
17- dayNames = moment . weekdaysShort ( ) ;
18- dayNamesEn = moment . weekdaysShort ( ) ;
19- dayNamesDeVor = JSON . parse ( JSON . stringify ( this . dayNamesEn ) ) ;
20- dayNamesDe = this . dayNamesDeVor . push ( this . dayNamesDeVor . shift ( ) ) ;
12+ monthNames : string [ ] ;
13+ dayNames : string [ ] ;
14+ dayNamesEn : string [ ] ;
15+ dayNamesDeVor : any ;
16+ dayNamesDe : any ;
2117
2218 dataSourceCustom : Day [ ] = [ ] ;
2319 daysAbsolute : Date [ ] = [ ] ;
2420
21+ constructor ( @Inject ( LOCALE_ID ) private appLocale : string ) {
22+ moment . locale ( this . appLocale . substring ( 0 , 2 ) ) ;
23+ this . monthNames = moment . monthsShort ( ) ;
24+ this . dayNames = moment . weekdaysShort ( ) ;
25+ this . dayNamesEn = moment . weekdaysShort ( ) ;
26+ this . dayNamesDeVor = JSON . parse ( JSON . stringify ( this . dayNamesEn ) ) ;
27+ this . dayNamesDe = this . dayNamesDeVor . push ( this . dayNamesDeVor . shift ( ) ) ;
28+ }
29+
2530 /**
2631 * @param {String } mode calendar mode (monthly|annual)
2732 * @param {boolean } calendarWeek Display calendar week
You can’t perform that action at this time.
0 commit comments