Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

67
Views
Establecer dinámicamente el valor [máx.] en el piquete de rango de tapete angular

El valor máximo en Mat ragepicker no se refleja dinámicamente. He replicado lo mismo a continuación. https://stackblitz.com/edit/angular-uc41kx-7a8m4h?file=src/app/date-range-picker-overview-example.html Lo siguiente es lo que probé. Quería limitar la selección de fecha a solo 29 días. Entonces, cuando se cambia la fecha, el valor máximo se actualizará mediante startChange($event) usando el evento (dateChange) .

 startChange(event: MatDatepickerInputEvent<Date>) { let maxDate; this.minDate = event.value; maxDate = moment(this.minDate).add(29, 'days').toDate(); if (this.currentDate < maxDate) { this.currentDate = moment().toDate() ; } else { this.currentDate = moment(this.minDate).add(29, 'days').toDate(); } }

Pero con lo anterior no funciona,

Me puede ayudar alguien.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!