Mam dwa matInputy typu time. start i end. chciałbym podkreślać na czerwono inputy w momencie kiedy end jest przed startem.
Moj kod:

  <input matInput type="time" [formControl]=startTime  [(ngModel)]=model.startTime/>
  <input matInput type="time" [formControl]=endTime [(ngModel)]=model.endTime/>
  model = new Model();
  startTime = new FormControl('', Validators.max(this.data.model.endTime));
  endTime = new FormControl('', Validators.min(this.data.model.startTime));

to nie działa :(