How can I display the same HTML code in a modal window after clicking on a button in my Angular2 component? Is there a way to achieve this without duplicating the code?
html code.
...
...
...
<div class="modal fade" id="a" tabindex="-1" role="modal" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="">
<div class="modal-content">
<div class="modal-header">
</div>
<div class="modal-body">
same code here from above
...
...
...