File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -836,6 +836,9 @@ need the reordering.
836836In the form definition you can refer to properties of an array item by the empty
837837bracket notation. In the ` key` simply end the name of the array with ` []`
838838
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+
839842Given the schema:
840843` ` ` json
841844{
@@ -888,7 +891,7 @@ function FormCtrl($scope) {
888891
889892Example with sub form, note that you can get rid of the form field the object wrapping the
890893subform fields gives you per default by using the ` items` option in the
891- form definition.
894+ form definition, also example of ` startEmpty ` .
892895
893896` ` ` javascript
894897function FormCtrl ($scope ) {
@@ -926,7 +929,8 @@ function FormCtrl($scope) {
926929 " subforms[].nick" ,
927930 " subforms[].name" ,
928931 " subforms[].emails" ,
929- ]
932+ ],
933+ startEmpty: true
930934 }
931935 ];
932936}
You can’t perform that action at this time.
0 commit comments