How to close a Dialog? #194
Replies: 3 comments
-
@goetzrobin your help will be appreciated here |
Beta Was this translation helpful? Give feedback.
-
With the new Dialog PR, wich will be released soon, you can take the example from the dialog-dynamic-component.
for now you can access the dialogComponent via viewChild and close it with this reference.
|
Beta Was this translation helpful? Give feedback.
-
You can also use a signal in your TS that you pass into the component. Then you manage the component showing or not showing by setting the value of the signal. Btw the code that enables @elite-benni suggestion was released as part of the latest alpha |
Beta Was this translation helpful? Give feedback.
-
I'm currently using the dialog https://www.spartan.ng/components/dialog but i don't know how to close the dialog from ts after successful api call.
Beta Was this translation helpful? Give feedback.
All reactions