Validate Two Inputs


Model

{}

Fields (note, functions are not shown)

[
  {
    "key": "email",
    "type": "input",
    "templateOptions": {
      "label": "Email"
    }
  },
  {
    "key": "validateEmail",
    "type": "input",
    "templateOptions": {
      "label": "Validate Email"
    },
    "validators": {
      "macAddress": {}
    }
  }
]

Form

{
  "$error": {},
  "$name": "formly_1",
  "$dirty": false,
  "$pristine": true,
  "$valid": true,
  "$invalid": false,
  "$submitted": false,
  "formly_1_input_email_0": {
    "$validators": {},
    "$asyncValidators": {},
    "$parsers": [],
    "$formatters": [
      null
    ],
    "$viewChangeListeners": [],
    "$untouched": true,
    "$touched": false,
    "$pristine": true,
    "$dirty": false,
    "$valid": true,
    "$invalid": false,
    "$error": {},
    "$name": "formly_1_input_email_0",
    "$options": null
  },
  "formly_1_input_validateEmail_1": {
    "$validators": {},
    "$asyncValidators": {},
    "$parsers": [],
    "$formatters": [
      null
    ],
    "$viewChangeListeners": [],
    "$untouched": true,
    "$touched": false,
    "$pristine": true,
    "$dirty": false,
    "$valid": true,
    "$invalid": false,
    "$error": {},
    "$name": "formly_1_input_validateEmail_1",
    "$options": null
  }
}
This is an example for the angular-formly project made with ♥ by anonymous
This example is running angular version "" and formly version ""
Edit in JS Bin