Create only one and not several modals

Asked

Viewed 20 times

0

Well guys I have a registration system and in the part of updating the user data he generates me a modal, but the page is getting heavy because there are many records and each record has a modal, as I do to create only one and popular the same according to each record?

1 answer

0

Basically open the modal through a function and pass as parameter an object or array to be displayed in that modal. This way you will use only one modal and the desired performance will be achieved.

This should be enough, but if you post some code, I will edit this solution to apply it to your code.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.