Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to bring product-edit on Modal #56

Open
BrenoSaith opened this issue Jul 26, 2022 · 1 comment
Open

How to bring product-edit on Modal #56

BrenoSaith opened this issue Jul 26, 2022 · 1 comment

Comments

@BrenoSaith
Copy link

Hi Deborah/Duncan. I have a small question and I need your help.

I want to open the product-edit.component in a modal instead of opening next to the list.

In a few steps, how could I do this since the shell.component contains the list of products and the edit form?

I tried to use NgbModel but I believe I'm doing something wrong.

@duncanhunter
Copy link
Collaborator

Hi

This should not be NgRx specific.

You should be able to pass the data to the modal (depending on the modal library/approach), do the edit then get the result from the modal when you close it. Alternatively, you could subscribe to the store and dispatch an update action in the modal component.

Might be best to raise an issue on their modal repository or StackOverflow for help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants