formly-js / angular-formly

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

validators do not fire #612

Closed rosscdh closed 8 years ago

rosscdh commented 8 years ago
    "angular-formly#~7.2.3",
    "angular-formly-templates-bootstrap#6.1.5",
    $scope.fields = [
      {
        className: 'row',
        fieldGroup: [
          {
            className: 'col-xs-6',
            key: 'fake_brand',
            type: 'async-ui-select',
            templateOptions: {
              required: true,
              label: 'Brand',
              valueProp: 'id',
              labelProp: 'text',
              options: [],
              refresh: refreshBrands,
              refreshDelay: 0,
            },
            validators: {
              monkey: {
                expression: function(viewValue, modelValue) {
                  alert(newValue);
                  alert(modelValue);
                },
                message: '$viewValue + " is not a valid IP Address"'
              }
            }
          },

formly-bug

benoror commented 8 years ago

Do you mind creating an example of what you're trying to accomplish? Please follow the instructions here: http://help.angular-formly.com

This will make it easier for you to get help. Because the github issues are reserved for bug reports and feature requests, I'm going to go ahead and close this issue. See you on chat! Thanks!