Angular uibmodal loader

510 Views Asked by At

could anyone guide me of how to add a loader to uibmodal to be shown until content gets loaded.

I do not need it to be only in one case I need it a default behavior.

1

There are 1 best solutions below

0
On

Check this plunkr . Rather than Loading , you can put <img> which will show a spinner gif

<script type="text/ng-template" id="test.html">
    <div><div class="modal-header">
      <h1 class="modal-title"> Modal</h1>
    </div>
    <div class="modal-body">
      <div ng-show="!($ctrl.data)">Loading</div>
         {{$ctrl.data}}
    </div>
</script>