I am trying to create an application in which I have multiple user's data. I have to create 6 modals for each user from where they can access their data. Suppose User 1 has 6 modals named - A B C D E F , then
on click of A, login modal should open.
on click of B, register modal should open
and all these modals are different for all users.
I tried creating different methods for users, but that is not going to work. Because I will have to create 6 methods for all users and same with modals. So for 1 user, I will have to create 6 modals and again for 2nd user another 6 modals and so on.
Is there a better way for this?
I have created a StackBlitz to show what I have done
you can try something like below.
app.component.ts
app.component.html
you can check working demo here.
Let me know if you have any doubts.