@@ -232,12 +232,14 @@ angular.module('schemaForm').provider('sfBuilder', ['sfPathProvider', function(s
232
232
for ( var i = 0 ; i < transclusions . length ; i ++ ) {
233
233
var n = transclusions [ i ] ;
234
234
235
- // The sf-transclude attribute is not a directive, but has the name of what we're supposed to
236
- // traverse.
237
- var sub = args . form [ n . getAttribute ( 'sf-field-transclude' ) ] ;
238
- if ( sub ) {
239
- sub = Array . isArray ( sub ) ? sub : [ sub ] ;
240
- var childFrag = args . build ( sub , args . path + '.' + sub , args . state ) ;
235
+ // The sf-transclude attribute is not a directive,
236
+ // but has the name of what we're supposed to
237
+ // traverse. Default to `items`
238
+ var sub = n . getAttribute ( 'sf-field-transclude' ) || 'items' ;
239
+ var items = args . form [ sub ] ;
240
+
241
+ if ( items ) {
242
+ var childFrag = args . build ( items , args . path + '.' + sub , args . state ) ;
241
243
n . appendChild ( childFrag ) ;
242
244
}
243
245
}
@@ -248,7 +250,7 @@ angular.module('schemaForm').provider('sfBuilder', ['sfPathProvider', function(s
248
250
// but be nice to existing ng-if.
249
251
if ( args . form . condition ) {
250
252
var evalExpr = 'evalExpr(' + args . path +
251
- '.contidion , { model: model, "arrayIndex": $index})' ;
253
+ '.condition , { model: model, "arrayIndex": $index})' ;
252
254
if ( args . form . key ) {
253
255
var strKey = sfPathProvider . stringify ( args . form . key ) ;
254
256
evalExpr = 'evalExpr(' + args . path + '.condition,{ model: model, "arrayIndex": $index, ' +
0 commit comments