populate ng-select with json data

Published

I’m trying to populate a ng-select here i leave the repo link of the package, i’m using angular 12 cli.

When i create a new register, this populate correctly and print in the form the options and the multiple select works fine. but when i’m trying to edit the user registered I can’t print the selected data and the information.

In the create component, my first select i… well, select a option that is going to filter the roles that the application have, then i select all the roles that i’m going to use, as i mention before, all this works fine, but in the edit component, there is when i’m getting trubles 🙁

here i leave my stackblitz example, in the edit component you can check what i’m telling.

hope someone can help me

Source: Angular Questions

Published
Categorized as angular, angular-ngselect, javascript 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