formly-js / angular-formly

JavaScript powered forms for AngularJS
http://docs.angular-formly.com
MIT License
2.23k stars 406 forks source link

apiCheck error with $watchGroup watchers (array expressions) #733

Open mfulop opened 7 years ago

mfulop commented 7 years ago

Field watchers with type of '$watchGroup' expect expressions being arrays. The following field configuration throws apiCheck error:

  watcher: {
    expression: ['model.f1', 'model.f2'],
    type: '$watchGroup',
    listener: function() {}
  } 

=> Error: angular-formly: formly-field directive apiCheck failed! watcher at Argument 1/value must be typeOrArrayOf[shape] formly-field-directive-validation-failed