refactor: use emit instead of next for event emitters (#9610)

This commit is contained in:
Rafael Santana
2018-01-26 12:33:24 -03:00
committed by Jeremy Elbourn
parent 0f2ac9b145
commit fe0f7ed064
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ export class MatPaginator implements OnInit, OnDestroy {
/** Emits an event notifying that a change of the paginator's properties has been triggered. */
private _emitPageEvent() {
this.page.next({
this.page.emit({
pageIndex: this.pageIndex,
pageSize: this.pageSize,
length: this.length
+1 -1
View File
@@ -128,7 +128,7 @@ export class MatSort extends _MatSortMixinBase implements CanDisable, OnChanges,
this.direction = this.getNextSortDirection(sortable);
}
this.sortChange.next({active: this.active, direction: this.direction});
this.sortChange.emit({active: this.active, direction: this.direction});
}
/** Returns the next sort direction of the active sortable, checking for potential overrides. */