I am using template driven form approach. I want to add custom validations on a ngModelGroup. Namely, if one field is filled all fields must also be filled.
<form #f="ngForm">
<div ngModelGroup="address">
<input type="email" name="house_number" class="form-control" ngModel>
<input type="email" name="street_number" class="form-control" ngModel>
</div>
</form>
I search online and only found articles like this which talk about custom validation only at input level and not at ngModelGroup level. Other articles talk about Reactive forms which I can't implement.
Any help will be deeply appreciated.