I'm currently incorporating ngx-spinner
into my Angular application, but I'm running into an issue where it's loading on the entire page instead of just a specific area. Below is the code that I'm using:
<p> Hello name </p>
<div class="content" style="margin-top: 55px;">
<div style="position: relative">
<ngx-spinner bdColor = "rgba(0, 0, 0, 0.8)" size = "medium" color = "#fff" type = "square-jelly-box" [fullScreen] = "true"><p style="color: white" > Loading... </p></ngx-spinner>
</div>
<cui-modal></cui-modal>
<router-outlet></router-outlet>
</div>
The problem here is that I want the spinner to only load inside the
<div class="content" style="margin-top: 55px;"></div>
, so that only the contents within this div will be blocked. Unfortunately, it's currently blocking the entire screen. Can anyone help me find a solution to this issue?