Skip to content

Commit b79d8a7

Browse files
committed
rename intl
1 parent f861c42 commit b79d8a7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/lib/sort/sort-header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="mat-sort-header-container"
22
[class.mat-sort-header-position-before]="arrowPosition == 'before'">
33
<button class="mat-sort-header-button" type="button"
4-
[attr.aria-label]="_intl.sortButtonLabel(id)">
4+
[attr.aria-label]="intl.sortButtonLabel(id)">
55
<ng-content></ng-content>
66
</button>
77

src/lib/sort/sort-header.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import {
1010
ChangeDetectionStrategy,
1111
ChangeDetectorRef,
12-
Component,
12+
Component, ElementRef,
1313
Input,
1414
Optional,
1515
ViewEncapsulation
@@ -84,15 +84,16 @@ export class MdSortHeader implements MdSortable {
8484
get _id() { return this.id; }
8585
set _id(v: string) { this.id = v; }
8686

87-
constructor(public _intl: MdSortHeaderIntl,
87+
constructor(public intl: MdSortHeaderIntl,
8888
changeDetectorRef: ChangeDetectorRef,
89+
private _elementRef: ElementRef,
8990
@Optional() public _sort: MdSort,
9091
@Optional() public _cdkColumnDef: CdkColumnDef) {
9192
if (!_sort) {
9293
throw getMdSortHeaderNotContainedWithinMdSortError();
9394
}
9495

95-
this._rerenderSubscription = merge(_sort.mdSortChange, _intl.changes).subscribe(() => {
96+
this._rerenderSubscription = merge(_sort.mdSortChange, intl.changes).subscribe(() => {
9697
changeDetectorRef.markForCheck();
9798
});
9899
}

0 commit comments

Comments
 (0)