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 create templates for modal bodies and pass them to the modal (service?) #1101

Closed
281330 opened this issue Oct 8, 2016 · 1 comment

Comments

@281330
Copy link

281330 commented Oct 8, 2016

Just wondering if there's some way to do this.

For example, if I have a modal that shows some offer information, and another modal that will have exit confirmation (Are you sure you want to quit?), how can I keep these modal templates separate and just simply pass them to the modal service?

Right now, I have basically followed the documentation. In the case of the exit confirmation modal, it is part of the UploadPhoto component, which is a series of 3 steps (its for uploading pro photography stuff, so needs a lot of info) and if the user tries to exit from uploading steps, this modal should pop up that asks Are you sure you want to quit? I have the template for the modal included at the bottom of the upload-photo.component.html.

If there's a way to separate the modal templates that'd be great. Please let me know if that's possible.

@valorkin
Copy link
Member

right now, you can create separate components which will encapsulate your modals
you can track this issues #579

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