Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

268
Vistas
How to refresh <div> content faster on button click in angular?

I have a content with some value and on click of cancel button, I need to refresh that and display the new content. When I click on cancel button, the old content stays for some seconds before changing to new content for that .Pls let me know how to load the new content faster without this delay.

<div>Text</div>

   <button type="button" class="left-btn pull-right" (click)="reload()" data-dismiss="modal">cancel</button>

 reload() {
    this.CommonService.GetDateTimeByTimeZone().subscribe(tz => {
      let ds: Input = {
        StartDate: moment(this.timezoneDate).format("YYYY-MM-DDT00:00:00.000[Z]"),
        EndDate: moment(this.timezoneDate).format("YYYY-MM-DDT23:59:59.999[Z]")
      }
      this.Dashboard(ds, false)
    }, error => {
      Swal.fire('', this.es.adminErrorMsgList[39].message, 'error')
    });
    this.SelectedDate = ' ';
  }
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

reload() {

   // do the reload here

    this.CommonService.GetDateTimeByTimeZone().subscribe(tz => {
      let ds: Input = {
        StartDate: moment(this.timezoneDate).format("YYYY-MM-DDT00:00:00.000[Z]"),
        EndDate: moment(this.timezoneDate).format("YYYY-MM-DDT23:59:59.999[Z]")
      }
      this.Dashboard(ds, false)
    }, error => {
      Swal.fire('', this.es.adminErrorMsgList[39].message, 'error')
    });
    this.SelectedDate = ' ';
  }
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda