No we can’t do that via Template Driven because tt uses the models for the driven approach. So, Template Drive Forms uses the Angular directives in the template to handle the forms. And we can’t handle the directives service. For this we can go for Reactive Form Validation (https://www.agiratech.com/angular-4-reactive-forms-building-and-validating-forms/). Here you can create your custom validation and grouping validation in single CustomValidators.