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

109
Views
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
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!