Conversation
160f091 to
f7e0d30
Compare
dc32358 to
e20db06
Compare
e20db06 to
23eab6d
Compare
23eab6d to
e045728
Compare
5a53e61 to
395ff1b
Compare
|
@kara done |
|
@IgorMinar API review? |
There was a problem hiding this comment.
Please update api docs for both methods.
There was a problem hiding this comment.
Wasn't sure what to change here so I added a note on how the path can be used.
Let me know if you want something else
There was a problem hiding this comment.
@Toxicable I took a look again, but wasn't able to find the docs that you added. Is the commit up to date?
There was a problem hiding this comment.
@kara Uhhh, I guess not sorry, Ill double check this afternoon
There was a problem hiding this comment.
@kara Added some detail on what the path is meant to be and how to use it
There was a problem hiding this comment.
Looks good. I'll let @IgorMinar take one more look though, while it's presubmitting.
There was a problem hiding this comment.
Why number? Seems odd. And there are no tests as far as I can tell for using numerical arrays.
There was a problem hiding this comment.
Seams valid if you're traversing through a form array - form arrya being index based.
Ill add some tests.
|
@IgorMinar I think it needs one more review from you since the public-API changed again. |
IgorMinar
left a comment
There was a problem hiding this comment.
Thank you, @Toxicable!!!
IgorMinar
left a comment
There was a problem hiding this comment.
dang! I just noticed that this PR also needs API docs update. I asked @kara to send a follow up PR so that we don't need to block this, but in the future @Toxicable please do update the API docs.
I also noticed that you wrote a great justification of this change in the issue, but that justification is not available in the commit message, in the future it would be easier for us to review these kinds of changes if the explanation was in the commit message. thank you
|
@IgorMinar I can change it to a fix now if you like? |
|
@Toxicable If you can change it to a fix and add the justification to the commit message, that'd be awesome! We can get the PR in sooner. I can add docs in a follow-up so we don't have to go through the whole review process again. |
Internally getError and hasError call the AbstractControl#get method which takes `path: Array<string | number> | string` as input, since there are different ways to traverse the AbstractControl tree. This change matches the method signitures of all methods that use this.
bcde6d1 to
01b8874
Compare
|
@kara done! |
This commit adds docs for the changes made in angular#20211. Closes angular#19734.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
closes #19734
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
getErrorandhasErrormismatch the api ofgetIssue Number: #19734
What is the new behavior?
apis match
Does this PR introduce a breaking change?