Angular p-dropdown create options dynamically from one options array

Published

I am trying to create multiple dropdowns in Angular and need every drop down to display one less option. I got this far but now my dropdown always initializes with a value.
I have multiple dropdown and try to use one single options array and generate my data based on these options. I also dont know beforehand how many dropdown I will need.
The issue is that I also need a blank value the user sometimes does not want to select value.

https://stackblitz.com/edit/primeng-dropdown-demo-4tffmy?devtoolsheight=33&file=src/app/app.component.ts

Best regard

Source: Angular Questions

Published
Categorized as angular, primeng, primeng-dropdowns Tagged , ,

Answers

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq