After spending some time searching for the best way to accomplish this task without any luck, I am starting to doubt my search skills or perhaps no one has posed this question before. Despite leaning towards the former, I still find myself at a dead end.
My inquiry pertains to determining the optimal method for adding an element to the top of the DOM in AngularJS so that it surpasses everything else displayed. Any insights on this matter would be greatly appreciated.
Currently, my workaround involves displaying a modal with a loading spinner enclosed within it. However, I believe this approach is rather unsightly and feel that there should be a simpler way to add my own div element to the DOM showcasing the spinner.
Below is the code segment from my existing modal:
<div class="modal-body" style="text-align: center;">
<i class="fa fa-spinner fa-spin fa-5x"></i>
</div>
Hence, you can comprehend why I view embedding it in a modal as unnecessary and unattractive. While I have looked into directives, I remain uncertain about their implementation and how I could exhibit them in the desired location.