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

251
Views
El uso de ngbTooltip dentro de ngSwitch arroja un error cuando se destruye

Estoy usando Angular 2 y ng-bootstrap. Tengo un [ngSwitch] con diferentes información sobre herramientas definidas en el contenido según el caso.

Cuando la variable [ngSwitch] cambia, la información sobre herramientas arroja una excepción: this._unregisterListenersFn no es una función en NgbTooltip.ngOnDestroy.

No estoy seguro de si esto podría ser un problema técnico con la biblioteca ng-bootstrap o si estoy haciendo algo mal.

Aquí está el código ofensivo:

 <div [ngSwitch]='jobStatusItem.type'> <ul> <li *ngFor='let item of filteredItems()'> <span *ngSwitchCase='"job"'> <template #tooltipContent>Details</template> <span (click)='loadItem(item)' [ngbTooltip]='tooltipContent'> <img src='...' /> </span> </span> </li> </ul> </div>

Aquí está el mensaje de error: ingrese la descripción de la imagen aquí

Puedo cambiar el jobStatusItem.type una vez sin problemas, pero la segunda vez arroja el error.

over 4 years ago · Santiago Trujillo
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!