I was wondering if there's anyway to return a nested value inside a compareValue for the comparaison validators like Validators.lt().
For example, i've got two dates, and i need to know if the first one is before the second one. The problem being that those date are inside an array of objects like this:
This example doesn't work because of the $, and that's the one i need to replace by the proper array index. And it does and up working if i use:
return this.schedules[0].monday.morning_end
Which isn't really useful...
I was wondering if there's anyway to return a nested value inside a compareValue for the comparaison validators like
Validators.lt()
.For example, i've got two dates, and i need to know if the first one is before the second one. The problem being that those date are inside an array of objects like this:
This example doesn't work because of the
$
, and that's the one i need to replace by the proper array index. And it does and up working if i use:return this.schedules[0].monday.morning_end
Which isn't really useful...