We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e27442 + 6891579 commit 051cafeCopy full SHA for 051cafe
src/mustache/modelGenericValidators.mustache
@@ -35,7 +35,21 @@
35
* The FormControlFactory for {{classname}}.
36
*/
37
export class FormControlFactory extends BaseFormControlFactory<{{classname}}> {
38
- constructor(model: {{classname}}) {
+
39
+ /**
40
+ * Constructor.
41
+ *
42
+ * @param model An existing model for {{classname}}.
43
+ * If given, all form-controls of the factory automatically have the value of this model. If this
44
+ * model is not given, all values are `null`.
45
+ */
46
+ constructor(
47
+ model: {{classname}} = {
48
+ {{#vars}}
49
+ {{name}}: null,
50
+ {{/vars}}
51
+ }
52
+ ) {
53
super(model, {{classname}}.ModelValidators);
54
}
55
0 commit comments