mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor: use emit instead of next for event emitters (#9610)
This commit is contained in:
committed by
Jeremy Elbourn
parent
0f2ac9b145
commit
fe0f7ed064
@@ -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
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user