From a1855814d0092108bfeacfb4f39c9ffd70a8d37d Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Tue, 1 Aug 2017 15:04:51 -0700 Subject: [PATCH] compat(sort): add mat-compat inputs (#6172) --- src/lib/sort/sort.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/lib/sort/sort.ts b/src/lib/sort/sort.ts index c28841f2b596..87920d3fd336 100644 --- a/src/lib/sort/sort.ts +++ b/src/lib/sort/sort.ts @@ -51,6 +51,26 @@ export class MdSort { set disableClear(v) { this._disableClear = coerceBooleanProperty(v); } private _disableClear: boolean; + // Properties with `mat-` prefix for noconflict mode. + @Input('matSortActive') + get _matSortActive() { return this.active; } + set _matSortActive(v) { this.active = v; } + + // Properties with `mat-` prefix for noconflict mode. + @Input('matSortStart') + get _matSortStart() { return this.start; } + set _matSortStart(v) { this.start = v; } + + // Properties with `mat-` prefix for noconflict mode. + @Input('matSortDirection') + get _matSortDirection() { return this.direction; } + set _matSortDirection(v) { this.direction = v; } + + // Properties with `mat-` prefix for noconflict mode. + @Input('matSortDisableClear') + get _matSortDisableClear() { return this.disableClear; } + set _matSortDisableClear(v) { this.disableClear = v; } + /** Event emitted when the user changes either the active sort or sort direction. */ @Output() mdSortChange = new EventEmitter();