We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
how could I set the IModalOption.data from a server call in async way and send it back from modal to parent.
The text was updated successfully, but these errors were encountered:
If you are using mutable structure you could do this.
myMutableObject = { innerData: 'some value' }; this.modalService.openDialog(this.viewRef, { title: 'Some title', childComponent: SomeComponent, data: myMutableObject });
And then have in your SomeComponent (modal dialog component) piece of code like this:
SomeComponent
this.myService.getSomeData(data => { // if you only mutate the inner property your parent component will change as well this.data.innerData = data; });
However, I would not suggest to do this. Instead I would do let child modal component just trigger async method on parent component. Check #21 and #16
Sorry, something went wrong.
No branches or pull requests
Hi,
how could I set the IModalOption.data from a server call in async way and send it back from modal to parent.
The text was updated successfully, but these errors were encountered: