@@ -11,7 +11,7 @@ <h1>Version 2: Advanced Validation and Schema Patterns</h1>
1111 > Username
1212 < input
1313 type ="text "
14- [control ] ="registrationForm.username "
14+ [field ] ="registrationForm.username "
1515 [ariaInvalid] ="ariaInvalidState(registrationForm.username) "
1616 />
1717 @if (registrationForm.username().pending()) {
@@ -20,13 +20,13 @@ <h1>Version 2: Advanced Validation and Schema Patterns</h1>
2020 < app-form-error [field] ="registrationForm.username " />
2121 </ label >
2222
23- <!-- native HTML inputs bound with the [control ] directive -->
23+ <!-- native HTML inputs bound with the [field ] directive -->
2424 < div >
2525 < label
2626 > Age
2727 < input
2828 type ="number "
29- [control ] ="registrationForm.age "
29+ [field ] ="registrationForm.age "
3030 [ariaInvalid] ="ariaInvalidState(registrationForm.age) "
3131 />
3232 < app-form-error [field] ="registrationForm.age " />
@@ -39,7 +39,7 @@ <h1>Version 2: Advanced Validation and Schema Patterns</h1>
3939 < input
4040 type ="password "
4141 autocomplete
42- [control ] ="registrationForm.password.pw1 "
42+ [field ] ="registrationForm.password.pw1 "
4343 [ariaInvalid] ="ariaInvalidState(registrationForm.password.pw1) "
4444 />
4545 < app-form-error [field] ="registrationForm.password.pw1 " />
@@ -49,7 +49,7 @@ <h1>Version 2: Advanced Validation and Schema Patterns</h1>
4949 < input
5050 type ="password "
5151 autocomplete
52- [control ] ="registrationForm.password.pw2 "
52+ [field ] ="registrationForm.password.pw2 "
5353 [ariaInvalid] ="ariaInvalidState(registrationForm.password.pw2) "
5454 />
5555 < app-form-error [field] ="registrationForm.password.pw2 " />
@@ -67,7 +67,7 @@ <h1>Version 2: Advanced Validation and Schema Patterns</h1>
6767 < div role ="group ">
6868 < input
6969 type ="email "
70- [control ] ="emailField "
70+ [field ] ="emailField "
7171 [ariaLabel] ="'E-Mail ' + $index "
7272 [ariaInvalid] ="ariaInvalidState(emailField) "
7373 />
@@ -81,12 +81,12 @@ <h1>Version 2: Advanced Validation and Schema Patterns</h1>
8181 </ fieldset >
8282 < label
8383 > Subscribe to Newsletter?
84- < input type ="checkbox " [control ] ="registrationForm.newsletter " />
84+ < input type ="checkbox " [field ] ="registrationForm.newsletter " />
8585 </ label >
8686
8787 < label >
8888 Topics (multiple possible):
89- < select [control ] ="registrationForm.newsletterTopics ">
89+ < select [field ] ="registrationForm.newsletterTopics ">
9090 < option value =""> </ option >
9191 < option value ="Angular "> Angular</ option >
9292 < option value ="Vue "> Vue</ option >
@@ -100,7 +100,7 @@ <h1>Version 2: Advanced Validation and Schema Patterns</h1>
100100 < input
101101 type ="checkbox "
102102 [ariaInvalid] ="ariaInvalidState(registrationForm.agreeToTermsAndConditions) "
103- [control ] ="registrationForm.agreeToTermsAndConditions "
103+ [field ] ="registrationForm.agreeToTermsAndConditions "
104104 />
105105 </ label >
106106 < app-form-error [field] ="registrationForm.agreeToTermsAndConditions " />
0 commit comments