File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -836,6 +836,9 @@ need the reordering.
836
836
In the form definition you can refer to properties of an array item by the empty
837
837
bracket notation. In the ` key` simply end the name of the array with ` []`
838
838
839
+ By default the array will start with one *undefined* value so that the user is presented with one a
840
+ form, to supress this the attribute ` startEmpty` to ` true `
841
+
839
842
Given the schema:
840
843
` ` ` json
841
844
{
@@ -888,7 +891,7 @@ function FormCtrl($scope) {
888
891
889
892
Example with sub form, note that you can get rid of the form field the object wrapping the
890
893
subform fields gives you per default by using the ` items` option in the
891
- form definition.
894
+ form definition, also example of ` startEmpty ` .
892
895
893
896
` ` ` javascript
894
897
function FormCtrl ($scope ) {
@@ -926,7 +929,8 @@ function FormCtrl($scope) {
926
929
" subforms[].nick" ,
927
930
" subforms[].name" ,
928
931
" subforms[].emails" ,
929
- ]
932
+ ],
933
+ startEmpty: true
930
934
}
931
935
];
932
936
}
You can’t perform that action at this time.
0 commit comments