@@ -54,15 +54,15 @@ export class RegistrationForm {
5454}
5555```
5656
57- In our template, we can now use a ` [ariaInvalid ] ` binding on the input elements to reflect the invalid state:
57+ In our template, we can now use an ` [aria-invalid ] ` binding on the input elements to reflect the invalid state:
5858
5959``` html
6060<label
6161 >Username
6262 <input
6363 type =" text"
6464 [field] =" registrationForm.username"
65- [ariaInvalid ] =" ariaInvalidState(registrationForm.username)"
65+ [aria-invalid ] =" ariaInvalidState(registrationForm.username)"
6666 />
6767 <app-form-error [fieldRef] =" registrationForm.username" />
6868</label >
@@ -110,8 +110,8 @@ The validation messages will be displayed in the UI since we included our generi
110110 <input
111111 type =" email"
112112 [field] =" emailField"
113- [ariaLabel ] =" 'E-Mail ' + $index"
114- [ariaInvalid ] =" ariaInvalidState(emailField)"
113+ [aria-label ] =" 'E-Mail ' + $index"
114+ [aria-invalid ] =" ariaInvalidState(emailField)"
115115 />
116116 <button type =" button" (click) =" removeEmail($index)" >-</button >
117117 </div >
@@ -205,7 +205,7 @@ Errors can be assigned to individual fields (`pw1`) or to the grouping node (`pa
205205 type =" password"
206206 autocomplete
207207 [field] =" registrationForm.password.pw1"
208- [ariaInvalid ] =" ariaInvalidState(registrationForm.password.pw1)"
208+ [aria-invalid ] =" ariaInvalidState(registrationForm.password.pw1)"
209209 />
210210 <app-form-error [fieldRef] =" registrationForm.password.pw1" />
211211</label >
@@ -215,7 +215,7 @@ Errors can be assigned to individual fields (`pw1`) or to the grouping node (`pa
215215 type =" password"
216216 autocomplete
217217 [field] =" registrationForm.password.pw2"
218- [ariaInvalid ] =" ariaInvalidState(registrationForm.password.pw2)"
218+ [aria-invalid ] =" ariaInvalidState(registrationForm.password.pw2)"
219219 />
220220 <app-form-error [fieldRef] =" registrationForm.password.pw2" />
221221</label >
@@ -395,7 +395,7 @@ We can use this state to provide user feedback in the UI:
395395<input
396396 type =" text"
397397 [field] =" registrationForm.username"
398- [ariaInvalid ] =" ariaInvalidState(registrationForm.username)"
398+ [aria-invalid ] =" ariaInvalidState(registrationForm.username)"
399399/>
400400@if (registrationForm.username().pending()) {
401401 <small >Checking availability ...</small >
0 commit comments