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

79
Views
Creating carousel with collapse/expand tab in Angular

I'm trying to create this carousel in Angular with multiple items but on click on each item the tab should show in the full page width.

I've used owl-carousel from https://www.npmjs.com/package/ngx-owl-carousel-o It works well, the slider is working fine, the issue now is as the content is inside (refer image below) the item it takes up only that much width. To make it expandable on full width I need to take the content outside the slider and I require help in that as I am newbie in angular.

Issue: enter image description here

Trying to achieve: enter image description here

Temporary solution:

  toggleDisplay(divVal: string) {
console.log(divVal)
if(divVal == 'Weekly'){
  this.weeklyDiv = !this.weeklyDiv;
  this.cdhDiv = false;
  this.csLiteDiv = false;
  this.tsaLiteDiv = false;
  this.tsamDiv = false;
}
if(divVal == 'CDH'){
  this.cdhDiv = !this.cdhDiv;
  this.weeklyDiv = false;
  this.csLiteDiv = false;
  this.tsaLiteDiv = false;
  this.tsamDiv = false;
}
if(divVal == 'CS'){
  this.csLiteDiv = !this.csLiteDiv;
  this.cdhDiv = false;
  this.weeklyDiv = false;
  this.tsaLiteDiv = false;
  this.tsamDiv = false;
}
if(divVal == 'TSA'){
  this.tsaLiteDiv = !this.tsaLiteDiv;
  this.cdhDiv = false;
  this.csLiteDiv = false;
  this.weeklyDiv = false;
  this.tsamDiv = false;
}
if(divVal == 'TSAM'){
  this.tsamDiv = !this.tsamDiv;
  this.cdhDiv = false;
  this.csLiteDiv = false;
  this.tsaLiteDiv = false;
  this.weeklyDiv = false;
}

}

I understand its not good practice and can be refined, kindly help with a proper solution or If you know any such slider already in place please share it.

Thanks,

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!