Skip to content
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

refactor(forms): inherit ngOnChanges hooks from the base class #43945

Conversation

@AndrewKushnir
Copy link
Contributor

@AndrewKushnir AndrewKushnir commented Oct 26, 2021

This commit updates the code of the min and max validator directives to inherit ngOnChanges hooks from the base class (the AbstractValidatorDirective one), rather than implementing the hooks on the child classes. This was needed to avoid issues with hooks inheritance in ViewEngine, but since it's deprecated, the code can be cleaned up.

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes, no api changes)

Does this PR introduce a breaking change?

  • Yes
  • No
This commit updates the code of the min/max and minlength/maxlength validator directives to inherit `ngOnChanges` hooks from the base class (the `AbstractValidatorDirective` one), rather than implementing the hooks on the child classes. This was needed to avoid issues with hooks inheritance in ViewEngine, but since it's deprecated, the code can be cleaned up.
@AndrewKushnir AndrewKushnir force-pushed the abstract_validator_dir_refactor branch from 17a3b69 to d3ca679 Nov 16, 2021
@AndrewKushnir AndrewKushnir requested a review from dylhunn Nov 16, 2021
@AndrewKushnir AndrewKushnir marked this pull request as ready for review Nov 16, 2021
@pullapprove pullapprove bot requested review from alxhub, atscott, IgorMinar and zarend Nov 16, 2021
@AndrewKushnir
Copy link
Contributor Author

@AndrewKushnir AndrewKushnir commented Nov 16, 2021

Copy link
Contributor

@atscott atscott left a comment

reviewed-for: public-api

@pullapprove pullapprove bot requested a review from jelbourn Nov 16, 2021
Copy link
Contributor

@dylhunn dylhunn left a comment

reviewed-for: public-api

Copy link
Member

@petebacondarwin petebacondarwin left a comment

Reviewed-for: public-api

Copy link

@nirmal-mobiquity nirmal-mobiquity left a comment

it seems good refactor of code

@AndrewKushnir
Copy link
Contributor Author

@AndrewKushnir AndrewKushnir commented Nov 17, 2021

This PR was merged into the repository by commit 65597d6.

AndrewKushnir added a commit that referenced this issue Nov 17, 2021
)

This commit updates the code of the min/max and minlength/maxlength validator directives to inherit `ngOnChanges` hooks from the base class (the `AbstractValidatorDirective` one), rather than implementing the hooks on the child classes. This was needed to avoid issues with hooks inheritance in ViewEngine, but since it's deprecated, the code can be cleaned up.

PR Close #43945
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Dec 18, 2021

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 Dec 18, 2021
dimakuba added a commit to dimakuba/angular that referenced this issue Dec 28, 2021
…ular#43945)

This commit updates the code of the min/max and minlength/maxlength validator directives to inherit `ngOnChanges` hooks from the base class (the `AbstractValidatorDirective` one), rather than implementing the hooks on the child classes. This was needed to avoid issues with hooks inheritance in ViewEngine, but since it's deprecated, the code can be cleaned up.

PR Close angular#43945
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants