@Component({ selector: 'app-form', template: ` <input type="text" [formControl]="form | myUpperCase" placeholder="name"> ` }) export class FormComponent { form = new FormControl(""); }