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

224
Views
llamando a api en APP_INITIALIZER, si la API falla, la aplicación no carga cómo manejar

Este es el código que estoy usando, por favor ayúdenme.

 load() { let currentUrl=window.location.origin; return new Promise<void>((resolve, reject) => { this.httpClient = new HttpClient(this.handler); this.httpClient .post(this.liveApiUrl + 'config_sso', { url: currentUrl }) .toPromise() .then((response: any) => { SsoConfigService.settings = <IAppConfig>response.data; let obj={ button_name:response.data.button_name, sso_status:response.data.sso_status, iframe:response.data.iframe } localStorage.setItem('sso_data', JSON.stringify(obj)); this.authClientConfig.set({ clientId: 'rwerwerwerwesdvfsdfwesf', domain: 'sad.sad.sads.auth0.com', returnTo: "abc/login" }); console.log(SsoConfigService.settings); resolve(); },err=>{ reject(err); }) }); }
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!