diff --git a/src/lib/input/autosize.spec.ts b/src/lib/input/autosize.spec.ts index f3faa744be03..c1d7ab36940b 100644 --- a/src/lib/input/autosize.spec.ts +++ b/src/lib/input/autosize.spec.ts @@ -116,7 +116,7 @@ const textareaStyleReset = ` @Component({ template: ` - `, diff --git a/src/lib/input/autosize.ts b/src/lib/input/autosize.ts index d9cbf5adcb05..ff3766b78e7e 100644 --- a/src/lib/input/autosize.ts +++ b/src/lib/input/autosize.ts @@ -17,9 +17,25 @@ export class MdTextareaAutosize implements OnInit { /** Minimum number of rows for this textarea. */ @Input() minRows: number; + get mdAutosizeMinRows(): number { + return this.minRows; + } + + @Input() set mdAutosizeMinRows(value: number) { + this.minRows = value; + } + /** Maximum number of rows for this textarea. */ @Input() maxRows: number; + get mdAutosizeMaxRows(): number { + return this.maxRows; + } + + @Input() set mdAutosizeMaxRows(value: number) { + this.maxRows = value; + } + /** Cached height of a textarea with a single row. */ private _cachedLineHeight: number;