Browse Source

Testing repeated field validation

Richard Knight 4 years ago
parent
commit
8b7651767b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/app/_mock/testfields.v15.ts

+ 4 - 1
src/app/_mock/testfields.v15.ts

@@ -2,6 +2,8 @@
 // TESTS: Repeating Single Fields (i.e. fields not part of a repeating container group)
 // ---------------------------------------------------------------------------------------------------------------------
 
+import { Validators } from '@angular/forms';
+
 const model = {};
 
 const meta = {
@@ -12,7 +14,8 @@ const meta = {
 		maxRepeat: 5,
 		initialRepeat: 3,
 		showAddControl: true,
-		showDeleteControl: true
+		showDeleteControl: true,
+		validators: Validators.email
 	}
 };