Skip to content

Commit

Permalink
chore(api): update outputs (#7135)
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl authored and kara committed Oct 3, 2017
1 parent 2b3d795 commit ed338a3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib/datepicker/calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
[selected]="selected"
[dateFilter]="_dateFilterForViews"
(selectedChange)="_dateSelected($event)"
(userSelection)="_userSelected()">
(_userSelection)="_userSelected()">
</mat-month-view>

<mat-year-view
Expand Down
4 changes: 2 additions & 2 deletions src/lib/datepicker/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class MatCalendar<D> implements AfterContentInit, OnDestroy, OnChanges {
@Output() selectedChange = new EventEmitter<D>();

/** Emits when any date is selected. */
@Output() userSelection = new EventEmitter<void>();
@Output() _userSelection = new EventEmitter<void>();

/** Reference to the current month view component. */
@ViewChild(MatMonthView) monthView: MatMonthView<D>;
Expand Down Expand Up @@ -197,7 +197,7 @@ export class MatCalendar<D> implements AfterContentInit, OnDestroy, OnChanges {
}

_userSelected(): void {
this.userSelection.emit();
this._userSelection.emit();
}

/** Handles month selection in the year view. */
Expand Down
2 changes: 1 addition & 1 deletion src/lib/datepicker/datepicker-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
[dateFilter]="datepicker._dateFilter"
[selected]="datepicker._selected"
(selectedChange)="datepicker._select($event)"
(userSelection)="datepicker.close()">
(_userSelection)="datepicker.close()">
</mat-calendar>
4 changes: 2 additions & 2 deletions src/lib/datepicker/month-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class MatMonthView<D> implements AfterContentInit {
@Output() selectedChange = new EventEmitter<D | null>();

/** Emits when any date is selected. */
@Output() userSelection = new EventEmitter<void>();
@Output() _userSelection = new EventEmitter<void>();

/** The label for this month (e.g. "January 2017"). */
_monthLabel: string;
Expand Down Expand Up @@ -130,7 +130,7 @@ export class MatMonthView<D> implements AfterContentInit {
this.selectedChange.emit(selectedDate);
}

this.userSelection.emit();
this._userSelection.emit();
}

/** Initializes this month view. */
Expand Down

0 comments on commit ed338a3

Please sign in to comment.