-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor: convert dash-case md-autosize to camelCase #2339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The unit test needs to be updated as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you mean adding another part that checks that the old and the new api works? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test component in the spec still has |
||
this.maxRows = value; | ||
} | ||
|
||
/** Cached height of a textarea with a single row. */ | ||
private _cachedLineHeight: number; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Input()
should go on thegetter
. We should add that to the coding standards...