Skip to content

Commit

Permalink
fix: make it easier to extend providers
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlewis92 committed Oct 13, 2018
1 parent 8e8f100 commit c753c22
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { getWeekViewPeriod } from './util';
@Injectable()
export class CalendarAngularDateFormatter
implements CalendarDateFormatterInterface {
constructor(private dateAdapter: DateAdapter) {}
constructor(protected dateAdapter: DateAdapter) {}

/**
* The month view header week day labels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export class CalendarMomentDateFormatter
* @hidden
*/
constructor(
@Inject(MOMENT) private moment: any,
private dateAdapter: DateAdapter
@Inject(MOMENT) protected moment: any,
protected dateAdapter: DateAdapter
) {}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getWeekViewPeriod } from './util';
@Injectable()
export class CalendarNativeDateFormatter
implements CalendarDateFormatterInterface {
constructor(private dateAdapter: DateAdapter) {}
constructor(protected dateAdapter: DateAdapter) {}

/**
* The month view header week day labels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { DateAdapter } from '../../date-adapters/date-adapter';

@Injectable()
export class CalendarUtils {
constructor(private dateAdapter: DateAdapter) {}
constructor(protected dateAdapter: DateAdapter) {}

getMonthView(args: GetMonthViewArgs): MonthView {
return getMonthView(this.dateAdapter, args);
Expand Down

0 comments on commit c753c22

Please sign in to comment.