[AngularJS] angular 4 custom form validator

2017-11-29 Thread Sander Elias
You can add/remove validators dynamically during run time without issues -- 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...@

[AngularJS] angular 4 custom form validator

2017-11-28 Thread Jacob Thomas
We have a requirement to change attributes of form fields like "required", "hidden", "maxLength" based on selection of one or more fields on the form. For eg: Based on country selected from a dropdown, the city,state,address1, address2, address3 attributes should change. State may be mandatory