@@ -17,7 +17,7 @@ <h1>Version 3: Child Forms and Custom UI Controls</h1>
1717 @if (registrationForm.username().pending()) {
1818 < small > Checking availability ...</ small >
1919 }
20- < app-form-error [field ] ="registrationForm.username " />
20+ < app-form-error [fieldRef ] ="registrationForm.username " />
2121 </ label >
2222
2323 <!-- A whole child form with own model -->
@@ -32,7 +32,7 @@ <h1>Version 3: Child Forms and Custom UI Controls</h1>
3232 [field] ="registrationForm.age "
3333 [ariaInvalid] ="ariaInvalidState(registrationForm.age) "
3434 />
35- < app-form-error [field ] ="registrationForm.age " />
35+ < app-form-error [fieldRef ] ="registrationForm.age " />
3636 </ label >
3737 </ div >
3838
@@ -45,7 +45,7 @@ <h1>Version 3: Child Forms and Custom UI Controls</h1>
4545 [field] ="registrationForm.password.pw1 "
4646 [ariaInvalid] ="ariaInvalidState(registrationForm.password.pw1) "
4747 />
48- < app-form-error [field ] ="registrationForm.password.pw1 " />
48+ < app-form-error [fieldRef ] ="registrationForm.password.pw1 " />
4949 </ label >
5050 < label
5151 > Password Confirmation
@@ -55,9 +55,9 @@ <h1>Version 3: Child Forms and Custom UI Controls</h1>
5555 [field] ="registrationForm.password.pw2 "
5656 [ariaInvalid] ="ariaInvalidState(registrationForm.password.pw2) "
5757 />
58- < app-form-error [field ] ="registrationForm.password.pw2 " />
58+ < app-form-error [fieldRef ] ="registrationForm.password.pw2 " />
5959 </ label >
60- < app-form-error [field ] ="registrationForm.password " />
60+ < app-form-error [fieldRef ] ="registrationForm.password " />
6161 </ div >
6262 < fieldset >
6363 < legend >
@@ -76,11 +76,11 @@ <h1>Version 3: Child Forms and Custom UI Controls</h1>
7676 />
7777 < button type ="button " (click) ="removeEmail($index) "> -</ button >
7878 </ div >
79- < app-form-error [field ] ="emailField " />
79+ < app-form-error [fieldRef ] ="emailField " />
8080 </ div >
8181 }
8282 </ div >
83- < app-form-error [field ] ="registrationForm.email " />
83+ < app-form-error [fieldRef ] ="registrationForm.email " />
8484 </ fieldset >
8585 < label
8686 > Subscribe to Newsletter?
@@ -90,7 +90,7 @@ <h1>Version 3: Child Forms and Custom UI Controls</h1>
9090 [field] ="registrationForm.newsletterTopics "
9191 label ="Topics (multiple possible): "
9292 />
93- < app-form-error [field ] ="registrationForm.newsletterTopics " />
93+ < app-form-error [fieldRef ] ="registrationForm.newsletterTopics " />
9494 < label
9595 > I agree to the terms and conditions
9696 < input
@@ -99,9 +99,9 @@ <h1>Version 3: Child Forms and Custom UI Controls</h1>
9999 [field] ="registrationForm.agreeToTermsAndConditions "
100100 />
101101 </ label >
102- < app-form-error [field ] ="registrationForm.agreeToTermsAndConditions " />
102+ < app-form-error [fieldRef ] ="registrationForm.agreeToTermsAndConditions " />
103103 < hr />
104- < app-form-error [field ] ="registrationForm " />
104+ < app-form-error [fieldRef ] ="registrationForm " />
105105 < div role ="group ">
106106 < button
107107 type ="submit "
0 commit comments