浏览代码

Testing repeated field validation

Richard Knight 4 年之前
父节点
当前提交
8b7651767b
共有 1 个文件被更改,包括 4 次插入1 次删除
  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
 	}
 };