Modal as encapsulated component

Please remember, the issues forum is NOT for support requests. It is for bugs and feature requests only.
Please read and search
existing issues (both open and closed) prior to opening any new issue and ensure you follow the instructions therein.

Bug description:

It’s nice to have the Modal as Component now.

But what I’m missing or maybe don’t know is how to make it as external Component.

So I got a Component with HTML and a Controller with the functions for that modal inside it.
And from another Component I then open that Modal.

What I did now was the HTML template inside the Component HTML where I wanna open the Modal.
Like the example is doing, but what I really want is an excapsulated Modal.
What if you need to open the same Modal at 5 places?
What if you wanna lazy load the modal?

Link to minimally-working plunker that reproduces the issue:

Version of Angular, ng-bootstrap, and Bootstrap:


Alpha 3

Alpha 3

1 possible answer(s) on “Modal as encapsulated component