Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

258
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda