How to set hourValues inside date picker dynamically, something like(this isn’t working):
hourValues="this.index? 12,13,14 : 0,1,2,"
How to set hourValues inside date picker dynamically, something like(this isn’t working):
hourValues="this.index? 12,13,14 : 0,1,2,"
I haven’t tested this, but I would think something like:
[hourValues]="this.index ? [12,13,14] : [0,1,2]"
Wow this is working thank you
is there any way to do something like this?
[hourValues]="this.index ? something() : something2()"
Should be, as long as those functions return either arrays or comma-delimited strings.