Experts, I have a Reactive Form FormGroup where I have two FormControls:
my_form = new FormGroup({ ctrl1: new FormControl('foo', [Validator.validatorCtrl1]), ctrl2: new FormControl('bar', [Valiator.validateCtrl2]), }, { validateOn: onSubmit // validate when }, Now in my Validator.validateCtrl2, I want to add a logic which depends on the value of ctrl1. How can I pass the ctrl1 to the Validator.validateCtrl2. Any help would be appreciated. --pradip -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.