Skip to content

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

Merged
merged 1 commit into from
Jan 12, 2017

Conversation

EladBezalel
Copy link
Member

No description provided.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 22, 2016
@jelbourn
Copy link
Member

LGTM, thanks

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Dec 22, 2016
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn
Copy link
Member

@EladBezalel I also just realized that the properties should also be renamed to mdAutosizeMinRows and mdAutosizeMinRows

@jelbourn jelbourn removed the action: merge The PR is ready for merge by the caretaker label Dec 22, 2016
@EladBezalel EladBezalel force-pushed the refactor/mdAutosize branch 3 times, most recently from a353dec to 3db684a Compare December 26, 2016 20:09
@EladBezalel
Copy link
Member Author

@jelbourn seems like #2432 already fixed it.. should i just change to mdAutosizeMinRows and mdAutosizeMaxRows?

@jelbourn
Copy link
Member

jelbourn commented Jan 9, 2017

Yeah, that would be good; we'd still need to support the old names for one release as well (via getter / setter)

@EladBezalel EladBezalel force-pushed the refactor/mdAutosize branch 2 times, most recently from f253d2c to c7d9792 Compare January 12, 2017 10:38
…sizeMaxRows

- left minRows and maxRows to not break old versions
@EladBezalel
Copy link
Member Author

EladBezalel commented Jan 12, 2017

updated, @jelbourn please review

return this.minRows;
}

@Input() set mdAutosizeMinRows(value: number) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Input() should go on the getter. We should add that to the coding standards...

return this.maxRows;
}

@Input() set mdAutosizeMaxRows(value: number) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The unit test needs to be updated as well.

Copy link
Member Author

Choose a reason for hiding this comment

The 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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test component in the spec still has minRows and maxRows. It should use the updated API.

@jelbourn jelbourn added action: merge The PR is ready for merge by the caretaker and removed pr: needs rebase labels Jan 12, 2017
@tinayuangao tinayuangao merged commit 080f570 into angular:master Jan 12, 2017
@EladBezalel EladBezalel deleted the refactor/mdAutosize branch January 12, 2017 21:41
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants