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

141
Views
Mostrar div basado en un escenario determinado

Estoy tratando de mostrar solo un div si ocurre cierto escenario.


me salen 2 parametros

  1. typeOfCollection que puede tener 2 valores posibles llamados branch o courier
  2. duplicate que puede tener 2 valores posibles llamados Y o N

HTML

 <div *ngIf="typeOfCollection === '...' && duplicate" === '...'> </div>

No quiero mostrar el div anterior si typeOfCollection es una branch y el duplicate es N . Para cualquier otro escenario, quiero mostrar el div. ¿Alguna idea de cómo puedo hacerlo?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Me imagino que esto lo haría:

 <div *ngIf="!(typeOfCollection === 'branch' && duplicate" === 'N')">...</div>
over 4 years ago · Santiago Trujillo Report

0

¿Has probado?

 <div *ngIf="typeOfCollection !== 'branch' || duplicate !== 'N'"> </div>
over 4 years ago · Santiago Trujillo Report
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!