i am looking for a way to create a custom directive, that transcludes its content into a section to an ion modal.
<my-custom-modal> <h1>foo</h1> <p>bar</p> </my-custom-modal>
should transclude its content inside an Ionic Modal in another custom directive p.e.:
<ion-modal-view> <ion-header-bar> <h1 class="title">My Modal title</h1> </ion-header-bar> <ion-content> <my-custom-modal-body></my-custom-modal-body> </ion-content> </ion-modal-view>
Has somebody an idea, if something like this is possible?
I would like to work with a lot of modals, and all are similar and i would not make dozens of templates, but modal-templates with some dynamic areas.
Maybe i have the wrong idea, to create something like this. What could be the best way to create Modal-Templates with dynamic areas?