
Create a parent component with the following markup and add your child component in the placeholder specified. Invoke the parent component in the lightning action:
If this answer helps, please mark it as the best answer.<div aura:id="thecontainer" class="thecontainer" id="thecontainer">
<div role="dialog" tabindex="-1" aria-labelledby="header43" class="slds-modal slds-fade-in-open slds-modal--large" >
<div class="slds-modal__container">
<div class="slds-modal__header">
<h2 id="header43" class="slds-text-heading--medium">My Title</h2>
</div>
<div class="slds-modal__content slds-p-top--x-large slds-p-around--medium" aura:id="modalbody" id="modalbody">
<!-- your component goes here -->
</div><!-- modal -->
<div class="slds-modal__footer">
<!-- Footer elements, if required -->
</div>
</div>
</div>
<div class="slds-backdrop slds-backdrop--open"></div>
</div>