I have an Angular-ui Bootstrap modal in my Angular app:
<div class="modal-header">
</div>
<div class="modal-body">
<textarea ng-model="text" id="imageCaption" maxlength="1000" style="display: none;"></textarea>
</div>
<script>
$(document).ready(function() {
$("#imageCaption").myFunc();
});
</script>
I want the script function to run after the Bootstrap modal is opened. Right now, when I click to open the modal, it opens only after a while because it runs the function first. I want to open the modal faster.