Skip to content

Commit bd6da5f

Browse files
committed
fix: make sure moment date formatter is injectable
1 parent e75bca7 commit bd6da5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/angular-calendar/src/modules/common/calendar-moment-date-formatter.provider.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InjectionToken, Inject } from '@angular/core';
1+
import { InjectionToken, Inject, Injectable } from '@angular/core';
22
import {
33
CalendarDateFormatterInterface,
44
DateFormatterParams
@@ -24,6 +24,7 @@ export const MOMENT: InjectionToken<string> = new InjectionToken('Moment');
2424
*
2525
* ```
2626
*/
27+
@Injectable()
2728
export class CalendarMomentDateFormatter
2829
implements CalendarDateFormatterInterface {
2930
/**

0 commit comments

Comments
 (0)