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

108
Visualizações
NzModal content is not display and without error

I have a web component who have a method who, in case of error, call an other component to display an error.

When I call the web component the error modal is display correctly. But when I try to call directly the method, the modal is display without the content on the top left of the page.

enter image description here

I try to call the method to provide a js api. For that, I have create a service with the methods I want to call, and in my app module I pass the service to a window variable so I can call the method after it minify

window['test'] = this.testService.test;

the method in my service:

this.test = {
  getTest(
      uri: string,
      headers: {[p: string]: string | string[]},
      queryParams: {[p: string]: string | string[]},
      successCallback: () => void
  ): void {
    nzModalService.error({nzTitle: 'title'});
  },
}

I guess it is an injection issue but I cant find a solution, thank in advance

about 4 years ago · Juan Pablo Isaza
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