0
I’m trying to access the method isComplete()
of mat-date-range-Picker in my template:
error TS2339: Property 'isComplete' does not exist on type 'Matdaterangepicker
According to the documentation the isComplete() method checks whether the current selection has been completed (if initial date and final date have been selected).
How to access this method in my template?
The right way would be to call this method every time the date value changes and set a property and check this property in your template
– Eduardo Vargas
according to the documentation this method no longer does exactly that?
– veroneseComS
at the angle should not use methods as values in the template
– Eduardo Vargas
how so? in this case I would use in *ngIf, depending on the value it would render or not
– veroneseComS
Set method value on a property and do ngif based on that property
– Eduardo Vargas
what would be your suggestion? assign to a variable? create a pipe?
– veroneseComS
assign to a variable exactly
– Eduardo Vargas