If i want to create a directive which validates my email, how to do it?
import { Directive } from '@angular/core';
@Directive({
selector: '[appEmailValidator]'
})
export class EmailValidatorDirective {
constructor() {}
}
Created the directive, but have no idea how to implement validation rules/messages.